windows xp - Assembly program help -


i have program supposed clear screen , print name, new line , print name again. when run nothing shows up. program teminated normally. i'm doing in windows command prompt using debug.

    call 010e     call 0125     call 012d     call 0125     int 20      push ax     #clearscreen(010e)     push bx     push cx     push dx     xor al, al     xor cx, cx     mov dh, 18     mov dl, 4f     mov bh, 07     mov ah, 06     int 20     pop dx     pop cx     pop bx     pop ax     ret      mov dx, 0200    #printline(0125)     mov ah, 09     int 21     ret      push ax         #new line( 012d)     push dx     mov ah, 02     mov dl, 0d     int 21     mov dl, 0a     int 21,     pop dx     pop ax     ret      db' antarr$ #(0200) 

your first , obvious error calling int 20, terminate program, instead of bios interrupt int 10 withing clearscreen function.

edit: why don't use assembler this? try nasm example. also, program: tech, finding right dos or bios function.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -