Closed BitFracture closed 12 months ago
you should read the documentation (at least the chapter http://rasm.wikidot.com/syntax:general )
so if you assemble LD HL,DE, the output will be 0x62, 0x6B aka LD H,D : LD D,E and your program is OK
there is many other super instructions, to my concern i like to use 16 bits shifts because it's always a loss of time to remember each method
regards
Got it, that is quite helpful to know! Is there a way to disable non-atomic instructions, say, for maximal compatibility?
not now, that can be an evolution, i let you propose the name for the command line if you want
Here's a suggestion after reading https://github.com/EdouardBERGE/rasm/blob/master/rasm.c#L28520 :
printf("-zs only actual Z80 instructions (e.g. no LD HL,DE)\n");
Rationale:
s
for strict and z
for z80.-s
and are about symbols.z
.That sounds reasonable to me
I have a program using
LD HL,DE
(nonexistent in Z80, verified in my favorite source: https://clrhome.org/table/) but it assembles successfully as op code0x62
orLD H,D
. The bad op code is on me, but I don't think the assembler should have accepted it.RASM v2.1.3 (build xx/10/2023) - Gerieh Yasmana RASM v2.0 (build xx/07/2023) - Blue Hedgehog Windows 11 Intel x64
Does this happen for compatibility reasons and is expected, or is this a problem? Thanks for checking, love the product!