span class=postbody이것은 DOS에서 어셈블리로 인자를 받는것에 대한 예제 입니다.
br /
PSP에 대해서 알아두면 이해가 좀더 쉽겠네요.
br /
br /
/spantable align=center border=0 cellpadding=3 cellspacing=1 width=90%tbodytr tdspan class=genmedb코드:/b/span/td /tr tr td class=code
br /
.386
br /
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ASSUME CS:CODE, DS:CODE, ES:NOTHING, SS:STACK_AREA
br /
CODEnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; SEGMENT PARA PUBLIC USE16 'CLASS_CODE'
br /
L_STARTUP:
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ; DS:0080H - PSP area : DS세그먼트는 실행시 값이 넘겨져 옵니다.
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; MOV SI, 0080H
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; CLD
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; LODSB
br /
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; XOR CH, CH
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; MOV CL, AL
br /
L_PRINT_LOOP:
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; JCXZ L_EXIT
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; LODSB
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; MOV DL, AL
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; MOV AH, 02H
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; INT 21H
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; DEC CXnbsp;
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; JMP L_PRINT_LOOPnbsp; nbsp; nbsp; nbsp; nbsp; nbsp;
br /
L_EXIT:nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; MOV AX, 4C00H
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; INT 21H
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; HLT
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; JMP $
br /
CODEnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ENDS
br /
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ASSUME DS:DATA
br /
DATAnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; SEGMENT WORD PUBLIC USE16 'CLASS_DATA'
br /
DATAnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ENDS
br /
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; ASSUME SS:STACK_AREA
br /
STACK_AREAnbsp; nbsp; nbsp; SEGMENT PARA STACK USE16 'CLASS_STACK'
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; DB 4096 DUP (?)
br /
STACK_AREAnbsp; nbsp; nbsp; ENDS
br /
nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; END L_STARTUP
/td/tr/tbody/table
받은 트랙백이 없고,
댓글이 없습니다.

글
댓글을 달아 주세요
댓글 RSS 주소 : http://blog.minzkn.com/rss/comment/63댓글 ATOM 주소 : http://blog.minzkn.com/atom/comment/63