Commit Graph

9 Commits

Author SHA1 Message Date
Takashi Toyoshima
02c08505eb Implement I/O for lpc1114
Now Apple BASIC can run on the LPC1114 device :)
2014-12-09 04:54:33 +09:00
Takashi Toyoshima
826647fb93 Update test: now it can run Apple BASIC.
]10 PRINT "HELLO"

]20 END

]LIST

10  PRINT "HELLO"
20  END

]RUN
HELLO

]
2014-12-08 04:19:05 +09:00
Takashi Toyoshima
4994158c0c Bug fix: 0x2a is not ROR but ROL 2014-12-08 03:19:08 +09:00
Takashi Toyoshima
5465cc99d2 Update test.c to check Apple BASIC behaviors 2014-12-08 03:11:03 +09:00
Takashi Toyoshima
3f2daf7b08 Bug fix: data was broken on absolute and absolute indexed destination
Now it can show "Apple ][" logo by using Apple BASIC ROM!!
2014-12-08 03:01:27 +09:00
Takashi Toyoshima
77fa2964f1 Bug fix: stack is hard :(
SP should wrap correctly on push and pop
2014-12-08 02:43:05 +09:00
Takashi Toyoshima
d0ad06c86a Use 6502_65C02_functional_tests, and two bug fixes
- transfer operations should update n and z flags
 - TSX should transfer SP, not SR
2014-12-08 00:21:49 +09:00
Takashi Toyoshima
91c94746d8 Bug fix: manage r12 correctly, and TXS used a wrong register
To use r12 in assembly code:
 - use -fomit-frame-pointer for test.c
 - save and restore on calling libc functions
2014-12-07 16:35:46 +09:00
Takashi Toyoshima
dd372c8a2d Ready to implement a 6502 interpreter
All investigation for implementation and testing were done.
Now, 6502.S can be verified on qemu-arm, and run even on LPC1114.
All I have to do is just implement the 6502 interpreter.
2014-12-05 02:43:58 +09:00