@BB8, Your suggestion is good and even better than the optimizations from @fhw72.
It takes 2001525 cycles and thus, achieves 4032 Byte/s on a PAL C64.
CRC0 = $FB ; current value of CRC
CRC1 = $FC
CRC2 = $FD
CRC3 = $FE
CRC_START = $A000
CRC_COUNT = $2000
.macro CRC_createTableEntry value,byte ...
Search found 14 matches
- Tue Jun 10, 2025 9:46 pm
- Forum: Programming
- Topic: CRC32 with "nibble" table
- Replies: 35
- Views: 4926
- Tue Jun 10, 2025 8:45 pm
- Forum: Programming
- Topic: CRC32 with "nibble" table
- Replies: 35
- Views: 4926
Re: CRC32 with "nibble" table
Thanks for your suggestions!
With the help of your proposal, @BigDumpDinosaur, the cycles to do a CRC32 of the BASIC ROM drop from 2,159,152 (= 3,738 Byte/s) to 2,059,534 (= 3,918 Byte/s).
@fhw72 optimised it on top of your code by re-arranging the code and using Y for indexed reading of the new ...
With the help of your proposal, @BigDumpDinosaur, the cycles to do a CRC32 of the BASIC ROM drop from 2,159,152 (= 3,738 Byte/s) to 2,059,534 (= 3,918 Byte/s).
@fhw72 optimised it on top of your code by re-arranging the code and using Y for indexed reading of the new ...
- Mon Jun 09, 2025 7:27 pm
- Forum: Programming
- Topic: CRC32 with "nibble" table
- Replies: 35
- Views: 4926
CRC32 with "nibble" table
Hello,
I have a problem where I need a CRC32 on a memory-constraint 6502 system (no 65C02 or other allowed, just plain NMOS-6502). One the one hand, it should be somehow fast (which makes http://6502.org/source/integers/crc.htm not optimal), but also not to take too much space (LUT normally take ...
I have a problem where I need a CRC32 on a memory-constraint 6502 system (no 65C02 or other allowed, just plain NMOS-6502). One the one hand, it should be somehow fast (which makes http://6502.org/source/integers/crc.htm not optimal), but also not to take too much space (LUT normally take ...
- Thu May 16, 2024 7:57 pm
- Forum: Programming
- Topic: 6510 emulator written in 6510-machine code?
- Replies: 7
- Views: 6792
Re: 6510 emulator written in 6510-machine code?
There is such a program in Polish (SYMULATOR 6510) and German (6510 Einzelschritt-Simulator) but writen in BASIC.
The Polish version is in the attachment.
The instructions are in the program, if you have any problems, I can translate them.
That's obviously the "Einzelschrittsimulator" from the ...
The Polish version is in the attachment.
The instructions are in the program, if you have any problems, I can translate them.
That's obviously the "Einzelschrittsimulator" from the ...
- Thu Jan 25, 2024 10:52 am
- Forum: Hardware
- Topic: Potato Semi
- Replies: 6
- Views: 3386
Re: Potato Semi
They load HTTP content even if you accessed it via https; your browser might block this "mixed content" because of security reasons. At least, mine does.
That's why the link without https works: http://potatosemi.com/
That's why the link without https works: http://potatosemi.com/
- Sat Jan 13, 2024 4:56 pm
- Forum: Programming
- Topic: Help me pick an assembler!
- Replies: 37
- Views: 13858
Re: Help me pick an assembler!
And this is the list resulting from assembling it:
[...]
00F004 1 A4 EA 88 D0 waitBaud; Delay 1 bit time
00F008 1 FD
00F009 1 EA NOP
00F00A 1 A4 EA 88 D0 waitBaud; Delay 1 bit time
[...]
Please also note this PR https://github.com/cc65/cc65/pull/2279, which wants to add the expansion of macros in ...
[...]
00F004 1 A4 EA 88 D0 waitBaud; Delay 1 bit time
00F008 1 FD
00F009 1 EA NOP
00F00A 1 A4 EA 88 D0 waitBaud; Delay 1 bit time
[...]
Please also note this PR https://github.com/cc65/cc65/pull/2279, which wants to add the expansion of macros in ...
- Thu Nov 30, 2023 6:27 am
- Forum: Programming
- Topic: xa65 update - version 2.4.0
- Replies: 4
- Views: 1789
Re: xa65 update - version 2.4.0
6502inside wrote:
Note that file is in the attic where the deprecated files are (see attic/README).
- Wed Nov 29, 2023 8:18 pm
- Forum: Programming
- Topic: xa65 update - version 2.4.0
- Replies: 4
- Views: 1789
Re: xa65 update - version 2.4.0
Note that the file doc/fileformat.txt in the archive is still version "V1.2 as of 26jan1998", while http://www.6502.org/users/andre/o65/fileformat.html lists "V1.3 as of 31 mar 2005".
- Fri Jul 07, 2023 7:57 pm
- Forum: Hardware
- Topic: FPGA in DIP package in 2k23? (Also, generic FPGA rant)
- Replies: 20
- Views: 2579
Re: FPGA in DIP package in 2k23? (Also, generic FPGA rant)
Would the good old GODIL qualify as FPGA in DIP? Unfortunately, as far as I know, it is not for sale anymore.
- Fri Jul 07, 2023 3:26 pm
- Forum: Newbies
- Topic: Quickest method to detect 8 bit zero using discrete ICs
- Replies: 36
- Views: 23688
Re: Quickest method to detect 8 bit zero using discrete ICs
BillO wrote:
Have you considered diodes?
- Fri Jun 30, 2023 8:31 am
- Forum: Newbies
- Topic: Don Lancaster's Apple II Books
- Replies: 8
- Views: 10781
Re: Don Lancaster's Apple II Books
GARTHWILSON wrote:
Unfortunately we just lost Don Lancaster. He was 83.
His "CMOS Cookbook" (1st ed. in German) was one of my first books I had in the 80s when I begin to interest in digital logic families. It is still on the shelf behind me.
- Wed Feb 22, 2023 2:52 pm
- Forum: Emulation and Simulation
- Topic: 6502 Emulation of ADC in C
- Replies: 18
- Views: 12278
Re: 6502 Emulation of ADC in C
@drogon, are you aware that your union and its usage assumes a little endian machine on which this code is running?
Using
a = temp.t16 & 0xFFu;
c = (temp.t16 >> 8) & 0xFFu;
and, even better, getting rid of this union at all would be much more portable.
I hope the compiler will be able to ...
Using
a = temp.t16 & 0xFFu;
c = (temp.t16 >> 8) & 0xFFu;
and, even better, getting rid of this union at all would be much more portable.
I hope the compiler will be able to ...
- Sun May 01, 2022 11:34 am
- Forum: General Discussions
- Topic: CBM IEC Bus Question
- Replies: 1
- Views: 1057
Re: CBM IEC Bus Question
For IEC, even the parallel port of a PC can do the job (that is, if you still have one).
I had written a small program for this many, many years ago (https://spiro.trikaliotis.net/pposc) which I used for OpenCBM debugging. This program must run on plain DOS, no DOS extended, no virtual 8086 mode.
I had written a small program for this many, many years ago (https://spiro.trikaliotis.net/pposc) which I used for OpenCBM debugging. This program must run on plain DOS, no DOS extended, no virtual 8086 mode.
- Thu Mar 24, 2022 9:20 pm
- Forum: Programming
- Topic: Macro help?
- Replies: 50
- Views: 6843
Re: Macro help?
My I answer on this old thread? I even registered here in order to add what I have to say. ;)
I stumbled about the WDTEST macro myself some days ago, and I tried to do my own investigations.
I wrote my findings an guesses on the cbm-hackers mailing list (cf. http://www.softwolves.com/arkiv/cbm ...
I stumbled about the WDTEST macro myself some days ago, and I tried to do my own investigations.
I wrote my findings an guesses on the cbm-hackers mailing list (cf. http://www.softwolves.com/arkiv/cbm ...