Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Assembler problem

Name: Anonymous 2007-12-17 11:24

I started trying to learn assembly yesterday and I've hit a problem. How do you convert integers to string and print them? I've done this.

jmp start;

;/////////////////////////////////
  numcounter dw 0;
;/////////////////////////////////

start:

inc numcounter;

mov ah, 09;
mov dx, offset numcounter;
int 21h;
mov dx, 10;
int 21h;
cmp numcounter, 10;
jnz start;


mov ah, 4Ch;
mov al, 00;
int 21h;

and i've also done this to test it out
jmp start;

;/////////////////////////////
printnumber dw 10;
;/////////////////////////////

start:

mov ah, 09;
mov dx, offset printnumber;
int 21h;

mov ah, 4Ch;
mov al, 00;
int 21h;

Name: Anonymous 2007-12-17 11:37

Ah, "assembly", I see.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List