Commit Graph

206 Commits

Author SHA1 Message Date
Brad Grantham
a2b96de667 Add mmphosis' RAINBOW mode change demo
https://macgui.com/usenet/?group=2&id=22342#msg
2018-08-08 21:04:02 -07:00
Brad Grantham
8567ad7244 make CPU6502::cycles[] class-static 2018-08-08 12:35:38 -07:00
Brad Grantham
af0fe38c9e fill in implemented 65C02 opcodes
Add mnemonics to instructions[]
    Add 10 new blank entries for growth

Add entries to opcode_props
2018-08-08 12:34:01 -07:00
Lawrence Kesteloot
b5918819af Fix off-by-two bug with LK_HACK. 2018-08-07 12:27:46 -07:00
Brad Grantham
49804018cc Asert if cycles[] is not set for insn 2018-08-07 12:21:43 -07:00
Brad Grantham
ad8f43b5a8 fix too many initializers error 2018-08-06 00:39:50 -07:00
Brad Grantham
183aea95fb Add instruction cycle count for ORA (ind) 2018-08-06 00:39:11 -07:00
Brad Grantham
e938af1349 implement STZ zpg and PHX 2018-08-06 00:36:43 -07:00
Lawrence Kesteloot
7d346a06b3 Fix overflow in LK_HACK. 2018-08-06 00:18:40 -07:00
Brad Grantham
043429311a fix crash if text is dragged from Chrome
If the drag-and-dropped filename has no leading "/", assume it is
drag-and-dropped text.  This matches the behavior of Chrome on Ubuntu,
for which dragging selected text onto GLFW is passed to the file drop
callback.

If the dragged selected text starts with "/", the drop callback will
still attempt to open it as a filename.
2018-08-06 00:15:58 -07:00
Brad Grantham
3c1017c60b implement STZ abs, fix -debugger 2018-08-06 00:15:58 -07:00
Brad Grantham
aacdd5cb96 disassemble 9C as STZ 2018-08-06 00:15:58 -07:00
Brad Grantham
347c2d4ddb remove warning on unused result of fread by using the result 2018-08-06 00:15:58 -07:00
Lawrence Kesteloot
43448014b1 Add ORA (ind) 65C02 instructions. 2018-08-05 23:17:03 -07:00
Brad Grantham
53f231573e ameliorate popping somewhat 2018-08-03 23:58:20 -07:00
Lawrence Kesteloot
dcbea11c33 Pass base address in LK_HACK. 2018-08-03 14:27:00 -07:00
Brad Grantham
1cfc30e904 use correct default page 2018-08-03 01:46:57 -07:00
Brad Grantham
37864dea0f mask bus access to 16-bit, add -mute option 2018-08-02 16:49:51 -07:00
Brad Grantham
984c2abad6 reorder notes to reflect todo 2018-08-02 16:25:25 -07:00
Brad Grantham
332dca17de separate notes on VBLANK and mode switch 2018-08-02 16:25:25 -07:00
Lawrence Kesteloot
bfe64192a3 Parse ld65 map file for symbolic debugging. 2018-08-02 16:07:48 -07:00
Lawrence Kesteloot
14a84bdb6a Add LK hack to disassemble bytes passed at 0xBFFF. 2018-08-02 16:07:48 -07:00
Lawrence Kesteloot
27123a09ea Fix bytelength calculation in disassembler. 2018-08-02 16:07:48 -07:00
Brad Grantham
4da1e4a2c7 undo enabling of TEXT on startup 2018-08-01 12:00:18 -07:00
Brad Grantham
eaffc29115 fix regular mode changes, disable prints 2018-08-01 11:26:49 -07:00
Brad Grantham
0cdabd22ad initial split mode implementation 2018-08-01 10:28:43 -07:00
Brad Grantham
e09d49c323 also send current clock to iterate 2018-08-01 09:29:41 -07:00
Brad Grantham
48be02beb0 add initial support for recording softswitch history by byte clock 2018-08-01 00:42:31 -07:00
Brad Grantham
55bbd69e28 move to per-clock mode setting history within frame
delete set_switches()

Pass history of mode settings to iterate()
2018-07-31 15:33:51 -07:00
Brad Grantham
114af20792 fix hgr scanout addresses, modulo 0x2000 2018-07-31 14:51:51 -07:00
Brad Grantham
9d5d4b4a35 initial floating bus implementation 2018-07-31 14:31:36 -07:00
Brad Grantham
bdcf50f890 implement 0xB2, LDA(zp) 2018-07-31 13:42:09 -07:00
Brad Grantham
992864d5a0 remove debug print for $6000 2018-07-31 12:09:35 -07:00
Brad Grantham
6f92ffa096 add ADC(zpg) 2018-07-31 12:07:42 -07:00
Brad Grantham
ea3930a8f0 change clock to be 14mhz, variable for CPU 2018-07-30 16:01:39 -07:00
Brad Grantham
064a9704d6 add some thoughts about clock 2018-07-30 11:18:57 -07:00
Brad Grantham
3bf5f5ed6a Default to TEXT 2018-07-28 12:31:50 -07:00
Brad Grantham
c3adb3abe6 add INC, DEC, and STA (zpg) 2018-07-28 02:50:09 -07:00
Brad Grantham
471fdffcf5 add test program for #23 2018-07-20 20:31:32 -07:00
Brad Grantham
94e1fc1c6d fix #23 by added fudge to texture sample
Another case sampling the wrong location fixed by adding vec2(.01, .01)...
2018-07-20 20:28:16 -07:00
Brad Grantham
a9aefa583a fix #25, terminate the pasted string with NUL
Allocate one more byte, and append a '\0'.

Whoops.
2018-07-20 20:21:57 -07:00
Brad Grantham
72134f94dd update to current codebase 2018-07-20 19:44:19 -07:00
Brad Grantham
17488ca7f7 send left-arrow by default when pressing backspace (delete) 2018-07-20 19:37:49 -07:00
Brad Grantham
e9ac6136f8 fix #3, add .01 texel to texture sampling
Not sure why that works, need to look at texture coordinates...
2018-07-20 18:58:40 -07:00
Brad Grantham
93b1f14cee temporarily hack textport shader to work 2018-07-20 18:44:10 -07:00
Brad Grantham
3dbc37ba35 Port to Linux and fix gcc warnings
Introduce GLEW for GL extension management

Fix warnings about "&" used in logical-AND with precedence likely not matching programmer's intent

Fix a GL shader type incompatibility uint vs int in lores shader

Add Makefile.linux
2018-07-20 16:09:59 -07:00
Brad Grantham
6745843b0c improve text-only interface
Reposition cursor to top before redraw, so textport updates don't jump

Fix keyboard so tty lower-case key is transmitted as correct key
  code (upper case and let apple2e.cpp handle conversion)
2018-06-08 10:01:03 -07:00
Brad Grantham
b925142da1 add utilities to turn bitmap to code 2018-06-06 12:15:58 -07:00
Brad Grantham
e47cb00e40 add floppy bitmap text files 2018-06-06 12:15:01 -07:00
Brad Grantham
d0e4c7b670 add Apple 2 integer basic ROM (original ROMs) 2018-06-06 12:14:26 -07:00