basm 0.5.0

z80 assembler relying on cpclib-asm
1
2
3
4
5
6
7
8
9
10
11
12
 
    org 0x1234
DICO100  equ $                  ; must be 0x1234


PFO100_try1 equ DICO100/256     ; must be 0x12
    assert PFO100_try1 == 0x12 ; the assertion seems to aknowledge that it is ok

    ld a, 0x12          ; Should be: 0x3e 0x12 Is :  0x3e 0x12 
    ld a, PFO100_try1   ; Should be: 0x3e 0x12 Is :  0x3e 0x00 
    ld a, DICO100/256   ; Should be: 0x3e 0x12 Is :  0x3e 0x00 
    ld a, 0x1234/256    ; Should be: 0x3e 0x12 Is :  0x3e 0x12