0 votes

test

test

Download .dasm16 file |
SET X, 0
:start
SET A, [string+X]
IFE A, 0
SET PC, end
BOR A, 0x7000
SET [0x8000+X], A
ADD A, 1
SET PC, start

:string dat "1 year on #habr!",0

:end
SET PC, end

Comments

Sign in to comment and vote

I had to change line 8 to 'ADD X, 1' to make it work.
Otherwise you're just printing the 1 over and over again.

submitted 299 days ago by lukasgibix