Basically, I want to use a value that keeps changing in the effective address, so I can print 3 characters of the figure in each line (I'm trying to print different figures at the same time in the same line).
%include "io.mac"
.DATA
figure db ' t ','tt ',' t ',' t ','ttt'
variable db 0
.CODE
.STARTUP
loop:
;... variable increases until max 5
PutCh [figure+(3*variable)]
PutCh [figure+(3*variable)+1]
PutCh [figure+(3*variable)+2]
nwln
;... jmp to loop
or another representation of the problem (by only printing one char)
xor bx,bx
loop:
mov al, [figure+bx]
PutCh al
inc bx
I've also tried using %assign but when I change the value by doing another %assign, it stays with the original value. I've tried using the bx register but it produces the relocation truncated to fit r_386_16 against .bss' error when I try to link it. Any ideas?