lunes, 18 de febrero de 2019

Unidad No.1-Emuladores online

1-assembler online




Código:

; Simple example
; Writes Hello World to the output

JMP start
hello: DB "Ivan Gutierrez!" ; Variable
       DB 0 ; String terminator

start:
MOV C, hello    ; Point to var 
MOV D, 232 ; Point to output
CALL print
        HLT             ; Stop execution

print: ; print(C:*from, D:*to)
PUSH A
PUSH B
MOV B, 0
.loop:
MOV A, [C] ; Get char from var
MOV [D], A ; Write to output
INC C
INC D  
CMP B, [C] ; Check if end
JNZ .loop ; jump if not

POP B
POP A
RET

No hay comentarios.:

Publicar un comentario

Unidad No.3: Mejora programa # 9: Letras de colores(Versión Ingrid Sauceda)

Ejecución del programa: Código: include 'emu8086.inc' Mostrar Macro Mensaje     LEA DX,Mensaje ;mandamos el mensaje a leer     MO...