6502
| Jeans & Development | 電子ブロック工房 | 三日坊主 | フロントページ |
Indirect JMP [6502]
2007年8月17日
There are a couple of bugs on 6502 cpu.
One of them may affect the BASIC compiler:
An indirect JMP (xxFF) will fail because the MSB will be fetched from address xx00 instead of page xx+1.
The 6502 simulater also follows this bug:

The BASIC compiler in my local environment now supports let statement and getting value from variables.
One of them may affect the BASIC compiler:
An indirect JMP (xxFF) will fail because the MSB will be fetched from address xx00 instead of page xx+1.
The 6502 simulater also follows this bug:

The BASIC compiler in my local environment now supports let statement and getting value from variables.
JSR command [6502]
2007年8月5日
After executing JSR command of 6502, higher 8 bit data is first pushed to stack, then lower 8 bit data is pushed.

Pushed address is 1 byte before the address that will be executed after RTS command.
For the BASIC compiler, I just completed the math (+, -, *, /, =, AND etc) and function (ABS, SGN, PEEK, and RND) routines. Next, integer variables and arrays will be supported.

Pushed address is 1 byte before the address that will be executed after RTS command.
For the BASIC compiler, I just completed the math (+, -, *, /, =, AND etc) and function (ABS, SGN, PEEK, and RND) routines. Next, integer variables and arrays will be supported.