Commit Graph

342 Commits

Author SHA1 Message Date
nickysn
b1ea62f5f6 + implemented ait_regalloc asm output for sdcc-sdasz80
git-svn-id: branches/z80@44491 -
2020-04-01 19:05:22 +00:00
nickysn
b486e6b353 * define R_SUBWHOLE = R_SUBW for Z80
git-svn-id: branches/z80@44490 -
2020-04-01 18:53:05 +00:00
nickysn
f87c837afe + implemented a_load_const_reg
git-svn-id: branches/z80@44489 -
2020-04-01 18:22:41 +00:00
nickysn
aeedb0022d + initial implementation of operand writing (registers and constants only for now)
git-svn-id: branches/z80@44488 -
2020-04-01 18:15:13 +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
2003020d68 + emit lowercase instructions in the z80 asm output
git-svn-id: branches/z80@44486 -
2020-04-01 14:09:44 +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
03ea93de87 + write eol after each instruction
git-svn-id: branches/z80@44484 -
2020-04-01 14:04:20 +00:00
nickysn
dc1ff00418 * fixed register number of IX
git-svn-id: branches/z80@44483 -
2020-04-01 13:36:59 +00:00
nickysn
d682df8bcd + implemented ait_instruction at least for instructions without operands
git-svn-id: branches/z80@44476 -
2020-04-01 02:19:46 +00:00
nickysn
1d3f14f769 + implemented ait_align asm output for sdcc-sdasz80
git-svn-id: branches/z80@44475 -
2020-04-01 00:39:08 +00:00
nickysn
26549ed045 * use the :: and == operators to declare global labels, instead of .globl
git-svn-id: branches/z80@44473 -
2020-03-31 21:59:56 +00:00
nickysn
4bc09f91cb + initial support for ait_section
git-svn-id: branches/z80@44472 -
2020-03-31 21:09:50 +00:00
nickysn
b0f2902e51 + support ait_symbol with value
git-svn-id: branches/z80@44468 -
2020-03-31 19:45:09 +00:00
nickysn
58c4fb8db1 + simplified adding the trailing : character when writing an ait_symbol for sdcc-sdasz80
git-svn-id: branches/z80@44467 -
2020-03-31 19:42:39 +00:00
nickysn
bbc8629b39 - removed commented out code for handling case insensitive assemblers, because sdcc-sdasz80 is case sensitive by default
git-svn-id: branches/z80@44466 -
2020-03-31 19:40:18 +00:00
nickysn
a670e04a3f + emit a .globl directive for global ait_symbols
git-svn-id: branches/z80@44465 -
2020-03-31 19:37:11 +00:00
nickysn
6159b34608 * capitalize idtxt of z80asm, so it can be selected with -Az80asm
git-svn-id: branches/z80@44459 -
2020-03-31 19:31:18 +00:00
nickysn
f3b9088d98 + emit .globl for AB_GLOBAL labels
git-svn-id: branches/z80@44453 -
2020-03-31 00:48:03 +00:00
nickysn
a4127ce3ab * get rid of EscapeLabel, since sdcc-sdasz80 doesn't seem to need it
git-svn-id: branches/z80@44452 -
2020-03-31 00:35:05 +00:00
nickysn
a38917f471 * fix missing comma in the middle of 64-bit ait_consts
git-svn-id: branches/z80@44451 -
2020-03-31 00:31:46 +00:00
nickysn
416511e245 + support aitconst_uleb128bit and aitconst_sleb128bit
git-svn-id: branches/z80@44450 -
2020-03-31 00:30:00 +00:00
nickysn
ca1fd28ac1 * set unsupported constants to FIXME in the ait_const2str table
* fix ait_const_16bit_unaligned

git-svn-id: branches/z80@44448 -
2020-03-30 23:59:41 +00:00
nickysn
c1888dd6e2 + support 32-bit and 64-bit ait_consts
git-svn-id: branches/z80@44447 -
2020-03-30 23:54:39 +00:00
nickysn
8589227fb0 * some ait_string and ait_const asm output fixes for sdcc-sdasz80
git-svn-id: branches/z80@44446 -
2020-03-30 23:39:53 +00:00
nickysn
377f52ee69 + started work on the sdcc-sdasz80 asm backend
git-svn-id: branches/z80@44445 -
2020-03-30 23:31:04 +00:00
nickysn
e8bca88dad + output nothing for ait_symbol_end
git-svn-id: branches/z80@44425 -
2020-03-30 02:25:58 +00:00
nickysn
b91269b821 + output unsupported aligns as comments (I don't think z80asm supports an align directive)
git-svn-id: branches/z80@44424 -
2020-03-30 02:24:27 +00:00
nickysn
c8ec4731e1 * indentation fix
git-svn-id: branches/z80@44423 -
2020-03-30 02:13:42 +00:00
nickysn
086ae1fc29 + perform some character escaping on the labels, because z80asm doesn't seem to like e.g. dollar signs in labels
git-svn-id: branches/z80@44422 -
2020-03-30 02:12:24 +00:00
nickysn
7bf31b0c26 + z80asm output for ait_const (8 and 16-bit only for now) and ait_symbol
git-svn-id: branches/z80@44421 -
2020-03-30 02:03:54 +00:00
nickysn
70d14c3c78 + implement ait_string for z80asm
git-svn-id: branches/z80@44419 -
2020-03-30 01:18:21 +00:00
nickysn
f8733f42c9 + started working on the z80 assembler writer - produce comments, labels and comments with unsupported asm objects
git-svn-id: branches/z80@44418 -
2020-03-30 01:02:28 +00:00
nickysn
ce424f2954 + added the OUTI instruction
git-svn-id: branches/z80@44417 -
2020-03-30 00:45:13 +00:00
nickysn
b3d1003f7e * TZ80GNUAssembler renamed TZ80AsmAssembler, because it targets the "z80asm" assembler
git-svn-id: branches/z80@44411 -
2020-03-29 22:24:42 +00:00
nickysn
7050d7a376 - removed the -mmcu= command line option from z80asm
git-svn-id: branches/z80@44410 -
2020-03-29 22:09:56 +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
8a99a619f8 + addnode dummy for Z80
git-svn-id: branches/z80@39796 -
2018-09-23 16:45:54 +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