FFORMAT/MOUSE.ASM
Anatoliy Belyanskiy 3ef8aefe30 Begin
2024-06-09 08:13:19 +10:00

29 lines
536 B
NASM
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; <20>®«ãç¨âì ­®¢ãî ¨­ä®à¬ æ¨î ® ¬ë誥.
; <20>८¡à §ã¥â £à ä. ª®®à¤¨­ âë ¢ ⥪á⮢ë¥
GetMousInfo:
ExmFire: ld c,3 ; ¯®«ãç¨âì ª®®à¤. ¬ë誨
RST ToDSS.Mouse
ret c
ex af,af'
srl h
rr l
srl h
rr l
srl l
ld a,e ; Y ª®®à¤¨­ â  (0-255)
rra
rra
rra
and 1Fh
ld h,a ; hl=ª®®à¤. ¢ §­ ª®¬¥áâ å
ex af,af' ; áâ âãá ¡ãâ®­®¢ ¬ë誨
and 3
ret
; †¤¥¬, ¥á«¨ ­ ¦ â ¡ãâ®­(ë) ¬ë誨
GetFire: call GetMousInfo
jr nz,GetFire ; ã§­ âì ­®¢ãî ¨­äã ¯® áâ âãáã ¡ãâ®­®¢
; ¡ãâ®­(ë) ­¥ ­ ¦ âë
ret