diff options
| author | Duncan Smith | 2010-09-14 19:50:47 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-14 19:50:47 -0700 |
| commit | 1f43ebf7030be20a3e559375a0ad09262ca2e1c3 (patch) | |
| tree | 05f901d96b34f8add0fa90ac0dac72bb895dc83d | |
| parent | 04ea312f6558eae2c43066eb7b57260a7fd49b28 (diff) | |
Trivial changes.
| -rw-r--r-- | flags.asm | 3 | ||||
| -rw-r--r-- | opcodes.asm | 2 | ||||
| -rw-r--r-- | testbenches/mine.z80 | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -177,6 +177,9 @@ flags_normalize: move.b (f_host_sr+1)(pc),d1 ; 8/4 ;; .w keeps d1 clean andi.w #%00011111,d1 ; 8/4 + + ;; doesn't this invalidate the previous contents of d1 + ;; entirely? move.b lut_ccr(pc,d1.w),d1 ; 10/4 move.b flag_valid(pc),d0 not.b d0 diff --git a/opcodes.asm b/opcodes.asm index f6171e9..7568c49 100644 --- a/opcodes.asm +++ b/opcodes.asm @@ -741,8 +741,8 @@ emu_op_3f: ;; XXX fuck flags bsr flags_normalize ;; SZ5H3PNC - andi.b #%11111110,flag_byte-flag_storage(a3) ori.b #%00000001,flag_valid-flag_storage(a3) + andi.b #%11111110,flag_byte-flag_storage(a3) DONE ;nok START diff --git a/testbenches/mine.z80 b/testbenches/mine.z80 index 0b75414..aa33fb5 100644 --- a/testbenches/mine.z80 +++ b/testbenches/mine.z80 @@ -4,7 +4,7 @@ .ORG 4000h call cond_jr ;cd - halt + halt ;76 inc8: ld bc,data8 ;01 |
