bslathi19
  • Joined on 2025-11-07
bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-27 21:59:36 -07:00
dfe27d4ec7 Add indexed indirect
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-27 20:53:29 -07:00
32 Bit address support

So we need to load 4 bytes from zeropage, which means we need to calculate 4 new addresses, but at the same time we also need to add the Y register to what we are reading. We might need to add…

bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-27 07:08:01 -07:00
32 Bit address support

Hmm that plan would not work because we need the ALU to be adding the offset, whereas this instruction also uses the ALU to generate the address.

bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 22:33:55 -07:00
32 Bit address support

Lets do Indirect Indexed, since it is apparently the most common indirection mode. according to the state listing, here are the steps that we do https://git.byronlathi.com/bslathi19/verilog6502/s…

bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 22:17:33 -07:00
32 Bit address support

Added in b31d7490b2d318d742cdd20a44003655cc565613

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 22:13:49 -07:00
b31d7490b2 Add indirect jump
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 22:02:38 -07:00
32 Bit address support

Ok that is one in dc339cb725af758c7bc9838d4920e9d921d31a55

Now for regular indirect. We can just copy JMPI0 twice.

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 21:57:16 -07:00
dc339cb725 Add absolute indexed indirect
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 21:12:59 -07:00
32 Bit address support

Lets tackle absolute,x indirect.

This is states JMPIXn

Like absx, We can probably just copy this state twice https://git.byronlathi.com/bslathi19/verilog6502/src/commit/06f933fa56fb4a83ef458…

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 21:08:28 -07:00
7164a8172f Add test for abs,y
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 21:06:33 -07:00
32 Bit address support

abs,y should also be handled by abs,x add those to the test also

bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 21:04:11 -07:00
32 Bit address support

Added abs,x here cb6cac12451b7a673680625ea2f77e9d4895305f

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 21:04:00 -07:00
cb6cac1245 add absolute,x
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 20:37:22 -07:00
32 Bit address support

abs,x next.

Looks like we can just copy this state https://git.byronlathi.com/bslathi19/verilog6502/src/branch/master/src/cpu_65c02.v#L215 2 more times

bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 20:34:46 -07:00
32 Bit address support

Lets tackle absolute for normal instructions next.

747438a9b678417f56eb94c90a31c456f70056b5

This was pretty simple, we just copy the ABS0 state two more times.

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 20:34:19 -07:00
747438a9b6 Add absolute addressing
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 19:29:57 -07:00
32 Bit address support

JMP changes are added in 019b84f41d6ea775194eeeb250fbd0eb185c3779

bslathi19 pushed to 32bit at bslathi19/verilog6502 2026-04-26 19:28:46 -07:00
019b84f41d Get reset sequence to work
bslathi19 commented on issue bslathi19/verilog6502#1 2026-04-26 08:55:39 -07:00
32 Bit address support

The BRK changes are added in 9476c6a0dd3bec6bf7d521cdd2c3467bcd3fb929

Now that we have those, we need to update the JMP state, since it is only waiting 1 cycle for an address ![image.png](/attac…

bslathi19 created branch 32bit in bslathi19/verilog6502 2026-04-26 08:54:14 -07:00