Ben Kurtovic
|
9b611e1c9a
|
Support step() with bit() and pseudo-cases.
|
vor 9 Jahren |
Ben Kurtovic
|
c3ab17f18e
|
Add a step() function to reduce repetition in instructions.yml.
|
vor 9 Jahren |
Ben Kurtovic
|
8f18c3ac14
|
Remove a lot of code duplication.
|
vor 9 Jahren |
Ben Kurtovic
|
d483afef51
|
Merge branch 'feature/asm_instructions'
|
vor 9 Jahren |
Ben Kurtovic
|
764211a379
|
Implement RRD, RST, SBC, SUB, and XOR.
|
vor 9 Jahren |
Ben Kurtovic
|
a8de15de2d
|
Implement RL, RLC, RR, RRC, SLA, SRA, SRL, and SL1/SLL/SLS.
|
vor 9 Jahren |
Ben Kurtovic
|
071cad0563
|
Support instructions with args and no args; implement RET.
|
vor 9 Jahren |
Ben Kurtovic
|
f341148eb7
|
Implement POP, PUSH, RES, and SET.
|
vor 9 Jahren |
Ben Kurtovic
|
5fab99ee17
|
Implement JP, JR, OR, OUT.
|
vor 9 Jahren |
Ben Kurtovic
|
b5459549b0
|
Support ports in update script; implement EX/IM/IN.
|
vor 9 Jahren |
Ben Kurtovic
|
5e9b890285
|
Support relative addressing in update script; implement CP/DEC/DJNZ.
|
vor 9 Jahren |
Ben Kurtovic
|
980383feee
|
Don't check INST_NARGS unless inst has optional arguments.
|
vor 9 Jahren |
Ben Kurtovic
|
4bc8339ba1
|
Implement CALL; bugfix for condition 'Z'.
|
vor 9 Jahren |
Ben Kurtovic
|
308af448d8
|
Don't check immediate's is_label if it's not a U16.
|
vor 9 Jahren |
Ben Kurtovic
|
631bd33b64
|
Implement BIT instruction.
|
vor 9 Jahren |
Ben Kurtovic
|
d1a0b97198
|
Fix indexed mode offset byte position.
|
vor 9 Jahren |
Ben Kurtovic
|
5c6f1c288b
|
Implement AND; cleanup for unconditional subcases.
|
vor 9 Jahren |
Ben Kurtovic
|
17f08dff4b
|
Fix behavior when combining indirect_hl_or_indexed and indirect.
|
vor 9 Jahren |
Ben Kurtovic
|
eba6350f4e
|
Fix duplicate prefixes.
|
vor 9 Jahren |
Ben Kurtovic
|
9642dfb6b0
|
Implement LD instruction; most remaining ASM instruction functionality.
|
vor 9 Jahren |
Ben Kurtovic
|
de3cbf741c
|
Fix argparse_immediate() masks for large numbers.
|
vor 9 Jahren |
Ben Kurtovic
|
981c4d4783
|
Disable ASan; bugfix for immediate masks.
|
vor 9 Jahren |
Ben Kurtovic
|
76f2783b64
|
Implement new masking system for ASM instructions; bugfixes.
|
vor 9 Jahren |
Ben Kurtovic
|
352296d6e2
|
Implement inc; make update script save updates; bugfix.
|
vor 9 Jahren |
Ben Kurtovic
|
b8b9072416
|
Implement no-arg instructions and 'add'.
|
vor 9 Jahren |
Ben Kurtovic
|
e987653c3b
|
Add more features to update_asm_instructions.py.
|
vor 9 Jahren |
Ben Kurtovic
|
5f71035468
|
More work on asm instructions.
|
vor 9 Jahren |
Ben Kurtovic
|
0548e5d18c
|
More work on update_asm_instructions.py
|
vor 9 Jahren |
Ben Kurtovic
|
ade92aea51
|
Starting work on new ASM instructions system.
|
vor 9 Jahren |
Ben Kurtovic
|
3d968c12b5
|
Add more to load instruction.
|
vor 9 Jahren |
Ben Kurtovic
|
2e2e5d6216
|
Split off some of instructions into inst_support; fix z80 errors.
|
vor 9 Jahren |
Ben Kurtovic
|
a00dda6686
|
Implement all ld a,<src> instructions.
|
vor 9 Jahren |
Ben Kurtovic
|
08d9faa926
|
Support indirect labels; stub out LD instruction.
|
vor 9 Jahren |
Ben Kurtovic
|
8babffb562
|
Implement most (all) of the no-argument instructions.
|
vor 9 Jahren |
Ben Kurtovic
|
13b7b29157
|
Replace OOM checks with light wrappers around allocation functions.
|
vor 9 Jahren |
Ben Kurtovic
|
cfebed6a33
|
Stub out all assembler instructions.
|
vor 9 Jahren |
Ben Kurtovic
|
b6bea003d9
|
Alphabetize instructions; add ADC.
|
vor 9 Jahren |
Ben Kurtovic
|
1c35adf276
|
Finish implementing .define/.undef directives.
|
vor 9 Jahren |
Ben Kurtovic
|
1d6f832864
|
Make crater be quiet when assembling/disassembling is successful.
|
vor 9 Jahren |
Ben Kurtovic
|
197ce39fd3
|
Do define substitution in argparsers; fix hashtables.
|
vor 9 Jahren |
Ben Kurtovic
|
fdd8bb9e8a
|
Pass argparse args as a struct to make keeping track of deftabs easier.
|
vor 9 Jahren |
Ben Kurtovic
|
2b5b7d8b23
|
Add hash_table_remove(); pass callback func in constructor.
|
vor 9 Jahren |
Ben Kurtovic
|
7745a9cbac
|
Refactor; abstract out HashTable; start support for .DEFINEs.
|
vor 9 Jahren |
Ben Kurtovic
|
145322071d
|
Support parsing labels; add checks for label length.
|
vor 9 Jahren |
Ben Kurtovic
|
baa1c6f0e9
|
Implement indexed addressing, plus some bugfixes.
|
vor 9 Jahren |
Ben Kurtovic
|
83f4ab380f
|
Implement parsing indirect args; fix immediates.
|
vor 9 Jahren |
Ben Kurtovic
|
ab3acc4b43
|
Add add and reti instructions.
|
vor 9 Jahren |
Ben Kurtovic
|
ae2fd5b2c8
|
Implement parsing of immediates; bugfix.
|
vor 9 Jahren |
Ben Kurtovic
|
8bbca15e47
|
Parse condition codes.
|
vor 9 Jahren |
Ben Kurtovic
|
de7aaf9aac
|
Add some additional macros to clean up inst parsers.
|
vor 9 Jahren |