Hi I'm a supporter of tniASM and want to be in contact with other tniASM v1.0 users for share interesting macro's and technics.
This assembler is very powerfull and the possibilities are legion.
I will begin first.
; 16bit compare nondestructive all flags as expected %macro cp hl,bc and a sbc hl,bc add hl,bc %endmacro ; define word then byte %macro dwb %n,%n %def16 #1 %def8 #2 %endmacro dwb 4000h,2 ; 16bit load in 8bit halfs %macro ld hl,%n,%n ld hl,#1 <<8| #2 %endmacro ld hl,200,10 ; pallette v9938 %macro rgb (%n,%n,%n)\(#2 <<8| #1 <<4| #3)\%endmacro dw rgb(1,2,3), rgb(7,6,5), rgb(3,4,5)
Login or register to post comments