home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
asm_programming
/
TEMP2.ASM
< prev
next >
Wrap
Assembly Source File
|
1989-10-29
|
2KB
|
81 lines
; put name here
; temp2.asm
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
STACKSEG SEGMENT STACK 'STACK'
dw 100h dup (?)
STACKSEG ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DATASTUFF SEGMENT PUBLIC 'DATA'
; 1 = signed, 2 = unsigned, 3 = binary
; 4 = hex, 5 = ascii
; 90h = signed, A0h = unsigned, B0h = binary
; C0h = hex, D0h = ascii
ax_byte db 2
bx_byte db 2
cx_byte db 2
dx_byte db 2
si_byte db 2
di_byte db 2
bp_byte db 2
sp_byte db 2
; + + + + + + + + + + + + + + + START DATA BELOW THIS LINE
; + + + + + + + + + + + + + + + END DATA ABOVE THIS LINE
DATASTUFF ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CODESTUFF SEGMENT PUBLIC 'CODE'
; ************** ASMHELP.OBJ INFO
EXTRN show_regs:NEAR , show_regs_and_wait:NEAR
EXTRN set_reg_style:NEAR , set_count:NEAR
EXTRN set_blue:NEAR , get_continue:NEAR
EXTRN get_num:NEAR , print_num:NEAR
EXTRN get_string:NEAR , print_string:NEAR
EXTRN get_ascii_byte:NEAR , print_ascii_byte:NEAR
EXTRN get_ascii:NEAR , print_ascii:NEAR
EXTRN get_hex_byte:NEAR , print_hex_byte:NEAR
EXTRN get_hex:NEAR , print_hex:NEAR
EXTRN get_binary_byte:NEAR , print_binary_byte:NEAR
EXTRN get_binary:NEAR , print_binary:NEAR
EXTRN get_signed_byte:NEAR , print_signed_byte:NEAR
EXTRN get_unsigned_byte:NEAR , print_unsigned_byte:NEAR
EXTRN get_signed:NEAR , print_signed:NEAR
EXTRN get_unsigned:NEAR , print_unsigned:NEAR
; ************** END ASMHELP.OBJ INFO
ASSUME cs:CODESTUFF, ds:DATASTUFF
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
main proc far
start: push ds ; set up for return
sub ax,ax
push ax
mov ax, DATASTUFF ; load ds
mov ds,ax
; + + + + + + + + + + + + + + + START CODE BELOW THIS LINE
; + + + + + + + + + + + + + + + END CODE ABOVE THIS LINE
ret
main endp
CODESTUFF ENDS
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
END start