Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abMacro MACRO
- mov cx, 5
- @@:
- add ax,10
- cmp ax, 30
- je @F ; Jump forward to next anonymous label (@@)
- loop @B ; Jump back to previous anonymous label (@@)
- @@:
- nop
- ENDM
- stack SEGMENT PARA STACK
- db ?
- stack ENDS
- data SEGMENT PARA PUBLIC
- db ?
- data ENDS
- code SEGMENT PARA PUBLIC
- ASSUME ss: stack, ds: data, cs: code
- _start:
- mov ax, data
- mov ds, ax
- abMacro
- abMacro
- mov ah, 04ch
- mov al, 1
- int 21h
- code ENDS
- END _start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement