Search found 2956 matches

by marcov
Jul 06, 2020 13:38
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 9
Views: 744

Re: BCD Conversion #Define(s)

Actually, BCD is a digit per byte/word. Digit per nibble is "packed BCD". Afaik forms of EAN 128 barcodes still use it.
by marcov
Jul 05, 2020 22:01
Forum: Community Discussion
Topic: Problems with downloading from Sourceforge
Replies: 5
Views: 1060

Re: Problems with downloading from Sourceforge

sf.net has a mirror selection system that you can set yourself. If one mirror behaves bad, choose another.
by marcov
Jul 05, 2020 16:18
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 9
Views: 744

Re: BCD Conversion #Define(s)

I'm not even sure if those instructions are really faster nowadays. Agree, likely to be slower even ... That's what I meant with pre-pentium. Starting with pentium-I and more importantly later Pentium-Pro, using standard simple instructions is usually faster than using "weird" legacy inst...
by marcov
Jul 05, 2020 9:54
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 9
Views: 744

Re: BCD Conversion #Define(s)

It is pre pentium era fun. I'm not even sure if those instructions are really faster nowadays.

And most members seem to handle horrible preprocessor stuff just fine (look at all the container type discussions). ASM is much simpler.
by marcov
Jul 04, 2020 12:34
Forum: Hardware Interfaces / Communication
Topic: BCD Conversion #Define(s)
Replies: 9
Views: 744

Re: BCD Conversion #Define(s)

setbcd

aam
mov dl,ah
shl dl,4
or al,dl
xor ah,ah

getbcd

mov ah,al
shr ah,4
and al,15
aad
by marcov
Jul 02, 2020 17:59
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 2083

Re: Getting old

"Don't stab pictures in the attic" That made me chuckle but I suspect many will not understand it. If it is any consolation I suspect that it made Oscar Wide chuckle as well. Oscar Wilde could be quite funny it seems. His quotes are quite popular (like e.g. Churchill) in e.g. Unix fortune...
by marcov
Jul 02, 2020 16:28
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 2083

Re: Getting old

jj2007 wrote:Translation, please!


Allora sei più profondo di me. Per lo più ho ottenuto "Non pugnalare quadri in soffitta" come motto principale.
by marcov
Jul 02, 2020 11:53
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 895

Re: Windows 10 May 2020 Update

the need to escape with \\.\ for the -W calls. utf8 support in the terminal is also being worked on. I've never used the \\.\ escapes, where do you need them? Note that windows paths have many kinds of \\ escapes at the beginning of the path. The most wellknown is the unc path (\\server\share), but...
by marcov
Jul 02, 2020 11:47
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 2083

Re: Getting old

Talking of good-looking chaps I have just finished 'The Picture of Dorian Gary' by Oscar Wilde which I first read fifty years ago. Needless to say I had forgotten most of it. At the end I felt a quip coming on and came up with: "It is imperative that we learn from the sins that we have committ...
by marcov
Jul 01, 2020 18:04
Forum: Community Discussion
Topic: Windows 10 May 2020 Update
Replies: 16
Views: 895

Re: Windows 10 May 2020 Update

Two very important recent features of the last two years: - manifest to switch the default encoding (for -A winapi calls) to UTF8 - manifest to lift the 260 char limit on filenames for the -A calls, and the need to escape with \\.\ for the -W calls. utf8 support in the terminal is also being worked ...
by marcov
Jun 24, 2020 11:54
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1078
Views: 178079

Re: FreeBasic IDE-poseidonFB(Update 2020.06.13)

Note that the recent Edge update seems to have reset various security settings, and by default now all unsigned binaries are suspect.
by marcov
Jun 22, 2020 19:40
Forum: General
Topic: program crashes after many ide's in development :(
Replies: 11
Views: 687

Re: program crashes after many ide's in development :(

To cleanup up an organically grown codebase, a first step would be to compile it for valgrind (via C backend?) and run it with as much as possible enabled.

Valgrind often halts on all signs of something wrong, and helps distinguishing original causes from later effects of e.g. memory corruption.
by marcov
Jun 19, 2020 8:51
Forum: General
Topic: Duplicates
Replies: 34
Views: 1812

Re: Duplicates

I think this kind of files is the reason why people use database systems. No. Database systems are very bad for operations that touch all data, IOW queries must have at least one major condition indexed, and the number of queries must be much larger than the original insertion/preparation/indexing ...
by marcov
Jun 19, 2020 8:36
Forum: General
Topic: Duplicates
Replies: 34
Views: 1812

Re: Duplicates

One (serious) question: Is it really faster to make CRC16 hashes of two strings and compare the hashes than directly comparing the strings for equality? If you have n lines in a bucket (all lines of same linesize), you need to compare all n lines to all n-1 other lines. Which means you have (n*(n-1...
by marcov
Jun 18, 2020 20:05
Forum: General
Topic: Duplicates
Replies: 34
Views: 1812

Re: Duplicates

Isn't a checksum just a 'low quality' hash? No, it is usually considered to be a hash to detect errors introduced by mis-sampling of bits in hardware, and those are often of the type that bits close to eachother differ. (since caused by the same disruption that causes multiple bits to toggle), so t...

Go to advanced search