Você está na página 1de 1

source code: hoopla.

asm

8/12/13, 22:37

; hoopla.asm
verify: mov dx, offset buffer mov ah, 0x0a int 0x21 jmp print buffer db 0x15,?, 0x15 dup(' ') ;max of 21 chars here, adjustable print: mov ah, 0x02 mov dl, 0x0a int 0x21 mov dl, 0x0d int 0x21 xor bx, bx mov bl, buffer[1] mov ax, 0x0000 mov cx, 0x0000 mov dx, 0x0000 mov bh, 0x00 mov cx, msgend - offset msg ; calculate message size. jmp msgend msg db "Brando" msgend: ;password here, make sure of match ;%bl shows the no. of char input

cmp bl, cl;compares no of input characters to no of output jne verify mov dx, bx mov bx, 0x0000 cycle: mov cl, msg[bx] mov al, buffer[bx+2] cmp al, cl jne verify add bx, 0x0001 cmp bx, dx jne cycle done: hlt

; - asm2html -

le:///Users/NoodleBytes/Desktop/hoopla.html

Page 1 of 1

Você também pode gostar