basm 0.5.0

z80 assembler relying on cpclib-asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; Same source than high, without the assertions
; in order to check if binaries could be ok

  org 0x1234


DICO100                         ; must be 0x1234
PFO100_try1 equ int(DICO100/256)     ; must be 0x12
PFO100_try2 equ high(DICO100)        ; must be 0x12
PFO100_try3 equ 0x12            ; must be 0x12
NBR_REG equ 13                  ; must be 13

    CP PFO100_try1+NBR_REG      ; must be 0x1f
    CP PFO100_try2+NBR_REG      ; must be 0x1f
    CP PFO100_try3+NBR_REG      ; must be 0x1f
    CP 0x12+13                  ; must be 0x1f