Mercurial > repos > blastem
comparison z80.cpu @ 1739:435877da5837
Fixed flag calculation in dec (hl) in new Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 04 Feb 2019 22:02:59 -0800 |
parents | d6157b7eb20c |
children | 28ab56ff8cea |
comparison
equal
deleted
inserted
replaced
1738:d6157b7eb20c | 1739:435877da5837 |
---|---|
1365 update_flags SZYHVXN1 | 1365 update_flags SZYHVXN1 |
1366 and 0xFF00 iy iy | 1366 and 0xFF00 iy iy |
1367 or tmp iy iy | 1367 or tmp iy iy |
1368 | 1368 |
1369 00110101 dec_hl | 1369 00110101 dec_hl |
1370 local tmp 8 | |
1370 z80_fetch_hl | 1371 z80_fetch_hl |
1371 #TODO: fix size | 1372 #TODO: Either make DSL compiler smart enough to optimize these unnecessary moves out |
1372 sub 1 scratch1 scratch1 | 1373 #or add some syntax to force a certain size on an operation so they are unnecessary |
1374 mov scratch1 tmp | |
1375 sub 1 tmp tmp | |
1373 update_flags SZYHVXN1 | 1376 update_flags SZYHVXN1 |
1377 mov tmp scratch1 | |
1374 z80_store_hl | 1378 z80_store_hl |
1375 | 1379 |
1376 dd 00110101 dec_ixd | 1380 dd 00110101 dec_ixd |
1377 local tmp 8 | 1381 local tmp 8 |
1378 z80_fetch_index ix | 1382 z80_fetch_index ix |