Apple Seed / 6502 http://www.rad51.net/blog/apple1/ blog to enjoy apple1 replica / 6502 ja Jeans CMS © Weblog http://backend.userland.com/rss https://www.rad51.net/jeans/skins/jeans/images/jeans2.gif Apple Seed http://www.rad51.net/blog/apple1/ Indirect JMP http://www.rad51.net/blog/apple1/?itemid=419 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:

JMP bug

The BASIC compiler in my local environment now supports let statement and getting value from variables.]]>
6502 http://www.rad51.net/blog/apple1/?itemid=419 Fri, 17 Aug 2007 20:06:04 PDT ITEM419_20070817
JSR command http://www.rad51.net/blog/apple1/?itemid=405 JSR
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.]]>
6502 http://www.rad51.net/blog/apple1/?itemid=405 Sun, 05 Aug 2007 23:54:52 PDT ITEM405_20070805