From 73728ec665e8b128b63c6c633f7c1dd7cfcae2f4 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 26 Dec 2020 19:13:23 -0800 Subject: 7412 - drawing pixels to screen This works, but colors are unexpected. 0xff isn't white. Lots of colors are black. Perhaps I need to initialize a palette. --- subx_opcodes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx_opcodes') diff --git a/subx_opcodes b/subx_opcodes index 273c2a88..f8bdc045 100644 --- a/subx_opcodes +++ b/subx_opcodes @@ -80,7 +80,7 @@ Opcodes currently supported by SubX: bf: copy imm32 to EDI (mov) c1: shift rm32 by imm8 bits depending on subop (sal/sar/shl/shr) c3: return from most recent unfinished call (ret) - c6: copy imm8 to r8/m8-at-r32 (mov) + c6: copy imm8 to r8/m8-at-r32 with subop 0 (mov) c7: copy imm32 to rm32 with subop 0 (mov) cd: software interrupt (int) d3: shift rm32 by CL bits depending on subop (sal/sar/shl/shr) -- cgit 1.4.1-2-gfad0