-- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html>
Legalize Adulthood! <http://blogs.xmission.com/legalize/>
_______________________________________________ Fractdev mailing list Fractdev@mailman.xmission.com http://mailman.xmission.com/cgi-bin/mailman/listinfo/fractdev
What's it supposed to do?
Just a simple program to get keystrokes and return them, for use in batch files. Writes "Choice:" to the screen, waits until the user presses a key, returns the key pressed. As you can see, has logic to eat special keys. This is used for some of the demo batch files that come with fractint. Likely has no applicability for yourporting project. Tim .model small .stack .data message db "Choice: " l_message equ $-message .code main proc far .startup mov bx,0001h lea dx,message mov cx,l_message xor ax,ax mov ah,40h int 21h mov ah,7h int 21h cmp ax,256 ; special key? je special sub ax,304 jmp done special: mov ah,7h int 21h ; eat key xor ax,ax done: .exit main endp end