Commit Graph

44 Commits

Author SHA1 Message Date
nickysn
51e6a3f45b + implemented OP_SHL/OP_SHR/OP_SAR/OP_ROL/OP_ROR in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44665 -
2020-04-09 21:14:23 +00:00
nickysn
eb26cd55d4 + implemented OP_XOR in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44661 -
2020-04-09 14:29:56 +00:00
nickysn
7a86d193cc + implemented OP_OR in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44660 -
2020-04-09 14:24:36 +00:00
nickysn
f00f39abef + implemented OP_AND in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44659 -
2020-04-09 14:21:57 +00:00
nickysn
5360770ed2 + implemented OP_SUB in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44658 -
2020-04-09 13:41:28 +00:00
nickysn
75a2f0352e * fixed 64-bit OP_ADD in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44657 -
2020-04-09 13:28:22 +00:00
nickysn
a419018ff0 + handle fromsize>tosize in tcgz80.a_load_reg_reg
git-svn-id: branches/z80@44656 -
2020-04-09 13:23:10 +00:00
nickysn
ce56125e40 + implemented OP_ADD in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44655 -
2020-04-09 13:16:48 +00:00
nickysn
b896d2fea2 + implemented sign extension in tcgz80.a_load_reg_ref
git-svn-id: branches/z80@44652 -
2020-04-08 23:59:58 +00:00
nickysn
6fea99ac9d + implemented sign extension in tcgz80.a_load_ref_reg
git-svn-id: branches/z80@44651 -
2020-04-08 23:57:26 +00:00
nickysn
df59c070a1 + implemented sign extension in tcgz80.a_load_reg_reg
git-svn-id: branches/z80@44650 -
2020-04-08 23:50:14 +00:00
nickysn
b84bcdaeee + implemented unsigned int extension in tcgz80.a_load_ref_reg
git-svn-id: branches/z80@44648 -
2020-04-08 22:30:35 +00:00
nickysn
d0166242b3 + support unsigned sign extension in tcgz80.a_load_reg_reg
git-svn-id: branches/z80@44646 -
2020-04-08 20:23:16 +00:00
nickysn
7d9658e2ba + support unsigned expansion in tcgz80.a_load_reg_ref
git-svn-id: branches/z80@44645 -
2020-04-08 20:12:17 +00:00
nickysn
5e94fbff54 + added method make_simple_ref (empty for now, but will be implemented later)
git-svn-id: branches/z80@44640 -
2020-04-07 23:12:33 +00:00
nickysn
7fd807905f + initial implementation of pushing ref params in tcgz80.a_load_ref_cgpara
git-svn-id: branches/z80@44639 -
2020-04-07 22:55:33 +00:00
nickysn
c53cd30e7f + implemented tcgz80.a_load_reg_cgpara for pushing 1-byte parameters on the stack
git-svn-id: branches/z80@44638 -
2020-04-07 22:34:05 +00:00
nickysn
4fc83a44d3 + implemented byte-sized inc/dec by 1 in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44631 -
2020-04-07 01:03:02 +00:00
nickysn
0d04d198fe + emit warnings for unimplemented ops in tcgz80.a_op_const_reg_internal
git-svn-id: branches/z80@44630 -
2020-04-07 00:55:54 +00:00
nickysn
f15b54085c * fixed tcgz80.a_load_const_cgpara for pushing params on the stack
git-svn-id: branches/z80@44627 -
2020-04-06 23:15:00 +00:00
nickysn
3ed692a157 + implemented tcgz80.a_jmp_flags
git-svn-id: branches/z80@44574 -
2020-04-04 17:07:54 +00:00
nickysn
99e304165e * fix for 64-bit OP_AND/OP_OR/OP_XOR in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44570 -
2020-04-04 15:33:01 +00:00
nickysn
c0b3eb70ac + fix for 64-bit OP_NOT in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44569 -
2020-04-04 15:30:43 +00:00
nickysn
5b8fd51b3a + implemented OP_NEG in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44568 -
2020-04-04 15:27:28 +00:00
nickysn
bf8d560cc6 * treat all Z80 registers as 8-bit
git-svn-id: branches/z80@44532 -
2020-04-03 18:53:10 +00:00
nickysn
5ddd0dd9b8 + implemented a_load_const_ref for more efficient Z80 code generation for const assignment to local variables
git-svn-id: branches/z80@44528 -
2020-04-03 02:23:05 +00:00
nickysn
4de1d5a8bf + Z80 stackframe generation
git-svn-id: branches/z80@44524 -
2020-04-03 00:15:24 +00:00
nickysn
20cd3a6d1b - removed GetLoad and GetStore from tcgz80. These came from AVR and I don't think they would be useful
for Z80.

git-svn-id: branches/z80@44512 -
2020-04-02 02:20:34 +00:00
nickysn
c02fc4a49f * fixed OP_NOT in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44511 -
2020-04-02 02:14:21 +00:00
nickysn
052313d649 * fixed OP_AND,OP_OR,OP_XOR in tcgz80.a_op_reg_reg_internal
git-svn-id: branches/z80@44510 -
2020-04-02 02:04:18 +00:00
nickysn
cae1865f32 * fixes for OP_ADD and OP_SUB in a_op_reg_reg_internal. The destination of add/adc/sub/sbc can only be
register NR_A.

git-svn-id: branches/z80@44508 -
2020-04-02 01:10:52 +00:00
nickysn
d26b5199c8 + implemented a_load_ref_reg for fromsize=tosize for z80
git-svn-id: branches/z80@44507 -
2020-04-02 01:01:58 +00:00
nickysn
065a0d44d8 * tcg64favr renamed tcg64fz80
git-svn-id: branches/z80@44504 -
2020-04-01 23:32:02 +00:00
nickysn
fc80874e63 + implemented a_load_reg_reg for z80 for fromsize=tosize
git-svn-id: branches/z80@44502 -
2020-04-01 22:43:10 +00:00
nickysn
662ca13f51 * use register NR_A in a_load_reg_ref for z80
git-svn-id: branches/z80@44501 -
2020-04-01 22:40:02 +00:00
nickysn
fbadb3519f + implemented a_load_reg_ref for equal sized args for z80
git-svn-id: branches/z80@44498 -
2020-04-01 22:08:46 +00:00
nickysn
f87c837afe + implemented a_load_const_reg
git-svn-id: branches/z80@44489 -
2020-04-01 18:22:41 +00:00
nickysn
36a26a53ae + emit warning comments in the asm output for the unimplemented methods in cgcpu
git-svn-id: branches/z80@44487 -
2020-04-01 17:16:56 +00:00
nickysn
050244e5f0 + emit a ret instruction at the end of functions
git-svn-id: branches/z80@44485 -
2020-04-01 14:05:00 +00:00
nickysn
943d0cbbe2 * use the generic code of tcg.getintregister, which supports 8-bit CPUs after merging trunk
git-svn-id: branches/z80@44398 -
2020-03-29 17:04:49 +00:00
nickysn
755fe97c51 * synchronize with trunk
git-svn-id: branches/z80@44397 -
2020-03-29 16:24:32 +00:00
florian
9a4ff8daa4 * started to get some Z80 things working
git-svn-id: branches/z80@44284 -
2020-03-08 11:43:38 +00:00
florian
e370e9ba15 * register names fixed
git-svn-id: branches/z80@35670 -
2017-03-27 20:30:51 +00:00
florian
ea52a23179 + skeleton for Z80 support
git-svn-id: branches/z80@35665 -
2017-03-26 19:10:50 +00:00