2001-09-08 15:24:54 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 24.04.1999
|
|
|
|
;
|
|
|
|
; Routines for the 1351 proportional mouse. Parts of the code are from
|
|
|
|
; the Commodore 1351 mouse users guide.
|
|
|
|
;
|
|
|
|
|
|
|
|
.export _mouse_init, _mouse_done
|
|
|
|
.export _mouse_hide, _mouse_show
|
|
|
|
.export _mouse_box, _mouse_info
|
|
|
|
.export _mouse_move, _mouse_pos
|
|
|
|
.export _mouse_buttons, _mouse_info
|
2001-09-13 15:27:19 +00:00
|
|
|
.condes MouseIRQ, 2
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
.import _readjoy
|
2001-09-13 16:01:32 +00:00
|
|
|
.import popax, addysp1
|
2001-09-19 09:53:04 +00:00
|
|
|
.importzp ptr1, sp
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
.include "c128.inc"
|
|
|
|
|
|
|
|
.macpack generic
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
.code
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; Constants
|
|
|
|
;
|
|
|
|
|
|
|
|
SPRITE_HEIGHT = 21
|
|
|
|
SPRITE_WIDTH = 24
|
|
|
|
SCREEN_HEIGHT = 200
|
|
|
|
SCREEN_WIDTH = 320
|
|
|
|
XCORR = SPRITE_WIDTH
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
2001-09-13 16:01:32 +00:00
|
|
|
; unsigned char __fastcall__ mouse_init (unsigned char type);
|
2001-09-08 15:24:54 +00:00
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_init
|
|
|
|
lda Initialized ; Already initialized?
|
2001-09-08 15:24:54 +00:00
|
|
|
bne AlreadyInitialized ; Jump if yes
|
|
|
|
|
|
|
|
; Initialize variables
|
|
|
|
|
|
|
|
ldx #0
|
2001-09-12 16:30:27 +00:00
|
|
|
lda #XCORR
|
|
|
|
sta XPos
|
2001-09-08 15:24:54 +00:00
|
|
|
stx XPos+1
|
|
|
|
stx YPos
|
|
|
|
stx YPos+1
|
|
|
|
stx OldPotX
|
|
|
|
stx OldPotY
|
|
|
|
stx XMin
|
2001-09-12 16:30:27 +00:00
|
|
|
stx XMin+1 ; XMin = 0
|
|
|
|
lda #50 ; ## FIXME: This is the PAL value
|
|
|
|
sta YCorr
|
|
|
|
sta YPos
|
|
|
|
stx YPos+1
|
|
|
|
sec
|
|
|
|
sbc #SPRITE_HEIGHT ; Sprite height in pixels
|
2001-09-08 15:24:54 +00:00
|
|
|
sta YMin
|
2001-09-12 16:30:27 +00:00
|
|
|
stx YMin+1 ; YMin = 29
|
|
|
|
lda #SCREEN_HEIGHT ; Vertical screen res
|
|
|
|
add YCorr ; Add correction factor
|
2001-09-08 15:24:54 +00:00
|
|
|
sta YMax
|
2001-09-12 16:30:27 +00:00
|
|
|
stx YMax+1
|
|
|
|
inx ; X = 1
|
|
|
|
stx Invisible ; Mouse *not* visible
|
|
|
|
lda #<(SCREEN_WIDTH + SPRITE_WIDTH)
|
2001-09-08 15:24:54 +00:00
|
|
|
sta XMax
|
2001-09-12 16:30:27 +00:00
|
|
|
stx XMax+1 ; XMax = 320 + sprite width
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
; Save the old init status and reset bit 0. This will disable the BASIC
|
|
|
|
; IRQ handler which will otherwise try to manage the mouse sprite on its
|
|
|
|
; own
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
lda INIT_STATUS
|
|
|
|
sta OldInitStatus
|
|
|
|
and #$FE
|
|
|
|
sta INIT_STATUS
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
; Mouse successfully initialized
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
lda #1
|
|
|
|
sta Initialized
|
|
|
|
rts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
AlreadyInitialized:
|
2001-09-13 15:27:19 +00:00
|
|
|
lda #0 ; Error
|
2001-09-08 15:24:54 +00:00
|
|
|
rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void mouse_done (void);
|
|
|
|
;
|
|
|
|
|
2001-09-19 09:57:56 +00:00
|
|
|
_mouse_done:
|
2001-09-13 15:27:19 +00:00
|
|
|
lda Initialized ; Initialized?
|
2001-09-19 09:57:56 +00:00
|
|
|
beq mddone ; Jump if no
|
2001-09-13 15:27:19 +00:00
|
|
|
lda #0
|
|
|
|
sta Initialized ; Reset the initialized flag
|
|
|
|
lda OldInitStatus ; Load the old BASIC int bit
|
|
|
|
and #$01 ; Mask it
|
|
|
|
ora INIT_STATUS ; Restore the old state
|
|
|
|
sta INIT_STATUS
|
2001-09-19 09:57:56 +00:00
|
|
|
|
|
|
|
; Disable the mouse sprite
|
|
|
|
|
|
|
|
DisableSprite:
|
2001-09-19 09:53:04 +00:00
|
|
|
lda #$FE ; Clear bit for sprite #0
|
2001-09-19 09:57:56 +00:00
|
|
|
sei ; Disable interrupts
|
2001-09-19 09:53:04 +00:00
|
|
|
and VIC_SPR_ENA
|
|
|
|
sta VIC_SPR_ENA ; Disable sprite
|
|
|
|
cli ; Enable interrupts
|
2001-09-19 09:57:56 +00:00
|
|
|
mddone: rts
|
2001-09-13 15:27:19 +00:00
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void mouse_hide (void);
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_hide
|
|
|
|
|
2001-09-08 15:35:13 +00:00
|
|
|
lda Invisible ; Get the flag
|
2001-09-08 15:24:54 +00:00
|
|
|
bne @L1 ; Jump if already invisible
|
2001-09-19 09:57:56 +00:00
|
|
|
jsr DisableSprite ; Disable the mouse sprite
|
2001-09-08 15:35:13 +00:00
|
|
|
@L1: inc Invisible ; Set the flag to invisible
|
2001-09-08 15:24:54 +00:00
|
|
|
rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void mouse_show (void);
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_show
|
|
|
|
|
2001-09-08 15:35:13 +00:00
|
|
|
lda Invisible ; Mouse invisible?
|
|
|
|
beq @L1 ; Jump if no
|
|
|
|
dec Invisible ; Set the flag
|
|
|
|
bne @L1 ; Jump if still invisible
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
sei ; Disable interrupts
|
|
|
|
jsr MoveSprite1 ; Move the sprite to it's position
|
2001-09-12 16:30:27 +00:00
|
|
|
lda VIC_SPR_ENA ; Get sprite enable register
|
|
|
|
ora #$01 ; Enable sprite #0
|
|
|
|
sta VIC_SPR_ENA ; Write back
|
2001-09-13 16:01:32 +00:00
|
|
|
cli ; Enable interrupts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
@L1: rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void __fastcall__ mouse_box (int minx, int miny, int maxx, int maxy);
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_box
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
ldy #0 ; Stack offset
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
add YCorr ; Adjust the Y value
|
|
|
|
bcc @L1
|
|
|
|
inx
|
|
|
|
clc
|
|
|
|
@L1: sei ; Disable interrupts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
sta YMax
|
2001-09-12 16:30:27 +00:00
|
|
|
stx YMax+1 ; maxy
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
lda (sp),y
|
|
|
|
adc #XCORR
|
2001-09-08 15:24:54 +00:00
|
|
|
sta XMax
|
|
|
|
iny
|
|
|
|
lda (sp),y
|
2001-09-12 16:30:27 +00:00
|
|
|
adc #$00
|
|
|
|
sta XMax+1 ; maxx
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
iny
|
|
|
|
lda (sp),y
|
2001-09-12 16:30:27 +00:00
|
|
|
add YCorr
|
|
|
|
sta YMin
|
2001-09-08 15:24:54 +00:00
|
|
|
iny
|
|
|
|
lda (sp),y
|
2001-09-12 16:30:27 +00:00
|
|
|
adc #$00
|
|
|
|
sta YMin+1 ; miny
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
iny
|
|
|
|
lda (sp),y
|
2001-09-12 16:30:27 +00:00
|
|
|
add #XCORR
|
|
|
|
sta XMin
|
2001-09-08 15:24:54 +00:00
|
|
|
iny
|
|
|
|
lda (sp),y
|
2001-09-12 16:30:27 +00:00
|
|
|
adc #$00
|
|
|
|
sta XMin+1 ; minx
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
cli ; Enable interrupts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
jmp addysp1 ; Drop params, return
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void __fastcall__ mouse_pos (struct mouse_pos* pos);
|
|
|
|
; /* Return the current mouse position */
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_pos
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
sta ptr1
|
|
|
|
stx ptr1+1 ; Remember the argument pointer
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
ldy #0 ; Structure offset
|
|
|
|
sec ; Needed for the SBC later
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
sei ; Disable interrupts
|
2001-09-08 15:24:54 +00:00
|
|
|
lda XPos ; Transfer the position
|
2001-09-12 16:30:27 +00:00
|
|
|
sbc #XCORR
|
2001-09-08 15:24:54 +00:00
|
|
|
sta (ptr1),y
|
|
|
|
lda XPos+1
|
2001-09-12 16:30:27 +00:00
|
|
|
sbc #$00
|
2001-09-08 15:24:54 +00:00
|
|
|
iny
|
|
|
|
sta (ptr1),y
|
2001-09-12 16:30:27 +00:00
|
|
|
lda YPos
|
|
|
|
ldx YPos+1
|
|
|
|
cli ; Restore initial interrupt state
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
sub YCorr ; Apply the Y correction value
|
|
|
|
bcs @L1
|
|
|
|
dex
|
|
|
|
@L1: iny
|
|
|
|
sta (ptr1),y ; Store YPos
|
|
|
|
txa
|
|
|
|
iny
|
|
|
|
sta (ptr1),y
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
rts ; Done
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void __fastcall__ mouse_info (struct mouse_info* info);
|
|
|
|
; /* Return the state of the mouse buttons and the position of the mouse */
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_info
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
; We're cheating here to keep the code smaller: The first fields of the
|
|
|
|
; mouse_info struct are identical to the mouse_pos struct, so we will just
|
|
|
|
; call _mouse_pos to initialize the struct pointer and fill the position
|
|
|
|
; fields.
|
|
|
|
|
|
|
|
jsr _mouse_pos
|
|
|
|
|
|
|
|
; Fill in the button state
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
jsr _mouse_buttons ; Will not touch ptr1
|
|
|
|
ldy #4
|
|
|
|
sta (ptr1),y
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; void __fastcall__ mouse_move (int x, int y);
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_move
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
add YCorr ; Add Y coordinate correction
|
|
|
|
bcc @L1
|
|
|
|
inx
|
|
|
|
clc
|
|
|
|
@L1: sei
|
|
|
|
sta YPos
|
|
|
|
stx YPos+1
|
|
|
|
cli
|
|
|
|
|
|
|
|
jsr popax ; Get X
|
|
|
|
adc #XCORR ; Adjust X coordinate
|
|
|
|
bcc @L2
|
|
|
|
inx
|
|
|
|
@L2: sei
|
|
|
|
sta XPos
|
|
|
|
stx XPos+1 ; Set new position
|
|
|
|
jsr MoveSprite ; Move the sprite to the mouse pos
|
|
|
|
cli ; Enable interrupts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; unsigned char mouse_buttons (void);
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc _mouse_buttons
|
|
|
|
|
2001-09-12 16:30:27 +00:00
|
|
|
lda #$00 ; Use port #0
|
2001-09-08 15:24:54 +00:00
|
|
|
jmp _readjoy ; Same as joystick
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; Mouse interrupt handler
|
2001-09-13 16:01:32 +00:00
|
|
|
;
|
2001-09-13 15:27:19 +00:00
|
|
|
|
|
|
|
IRQDone:rts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
MouseIRQ:
|
2001-09-13 15:27:19 +00:00
|
|
|
|
|
|
|
lda Initialized ; Mouse initialized?
|
|
|
|
beq IRQDone ; Jump if no
|
|
|
|
lda SID_ADConv1 ; Get mouse X movement
|
2001-09-08 15:24:54 +00:00
|
|
|
ldy OldPotX
|
|
|
|
jsr MoveCheck ; Calculate movement vector
|
|
|
|
sty OldPotX
|
|
|
|
|
|
|
|
; Calculate the new X coordinate (--> a/y)
|
|
|
|
|
|
|
|
add XPos
|
|
|
|
tay ; Remember low byte
|
|
|
|
txa
|
|
|
|
adc XPos+1
|
|
|
|
tax
|
|
|
|
|
|
|
|
; Limit the X coordinate to the bounding box
|
|
|
|
|
|
|
|
cpy XMin
|
|
|
|
sbc XMin+1
|
|
|
|
bpl @L1
|
|
|
|
ldy XMin
|
|
|
|
ldx XMin+1
|
|
|
|
jmp @L2
|
|
|
|
@L1: txa
|
|
|
|
|
|
|
|
cpy XMax
|
|
|
|
sbc XMax+1
|
|
|
|
bmi @L2
|
|
|
|
ldy XMax
|
|
|
|
ldx XMax+1
|
|
|
|
@L2: sty XPos
|
|
|
|
stx XPos+1
|
|
|
|
|
|
|
|
; Calculate the Y movement vector
|
|
|
|
|
|
|
|
lda SID_ADConv2 ; Get mouse Y movement
|
|
|
|
ldy OldPotY
|
|
|
|
jsr MoveCheck ; Calculate movement
|
|
|
|
sty OldPotY
|
|
|
|
|
|
|
|
; Calculate the new Y coordinate (--> a/y)
|
|
|
|
|
|
|
|
sta OldValue
|
|
|
|
lda YPos
|
|
|
|
sub OldValue
|
|
|
|
tay
|
|
|
|
stx OldValue
|
|
|
|
lda YPos+1
|
|
|
|
sbc OldValue
|
|
|
|
tax
|
|
|
|
|
|
|
|
cpy YMin
|
|
|
|
sbc YMin+1
|
|
|
|
bpl @L3
|
|
|
|
ldy YMin
|
|
|
|
ldx YMin+1
|
|
|
|
jmp @L4
|
|
|
|
@L3: txa
|
|
|
|
|
|
|
|
cpy YMax
|
|
|
|
sbc YMax+1
|
|
|
|
bmi @L4
|
|
|
|
ldy YMax
|
|
|
|
ldx YMax+1
|
|
|
|
@L4: sty YPos
|
|
|
|
stx YPos+1
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
; Move the mouse sprite to the current mouse position. Must be called
|
|
|
|
; with interrupts off. MoveSprite1 is an entry without checking.
|
|
|
|
|
|
|
|
MoveSprite:
|
|
|
|
|
|
|
|
lda Invisible ; Mouse visible?
|
|
|
|
bne Done ; Jump if no
|
|
|
|
|
|
|
|
; Set the high X bit
|
|
|
|
|
|
|
|
MoveSprite1:
|
|
|
|
lda VIC_SPR_HI_X ; Get high X bits of all sprites
|
|
|
|
and #$FE ; Clear bit for sprite #0
|
|
|
|
ldy XPos+1 ; Test Y position
|
|
|
|
beq @L5
|
|
|
|
ora #$01 ; Set high X bit
|
|
|
|
@L5: sta VIC_SPR_HI_X ; Set hi X sprite values
|
|
|
|
|
|
|
|
; Set the low X byte
|
|
|
|
|
|
|
|
lda XPos
|
|
|
|
sta VIC_SPR0_X ; Set low byte
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
; Set the Y position
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
ldy YPos+1 ; Negative or too large?
|
|
|
|
bne Done ; Jump if yes
|
|
|
|
lda YPos
|
|
|
|
sta VIC_SPR0_Y ; Set Y position
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
; Done
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
Done: rts
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; Move check routine, called for both coordinates.
|
|
|
|
;
|
|
|
|
; Entry: y = old value of pot register
|
|
|
|
; a = current value of pot register
|
|
|
|
; Exit: y = value to use for old value
|
|
|
|
; x/a = delta value for position
|
|
|
|
;
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.proc MoveCheck
|
|
|
|
|
2001-09-08 15:24:54 +00:00
|
|
|
sty OldValue
|
|
|
|
sta NewValue
|
|
|
|
ldx #$00
|
|
|
|
|
|
|
|
sub OldValue ; a = mod64 (new - old)
|
|
|
|
and #%01111111
|
|
|
|
cmp #%01000000 ; if (a > 0)
|
|
|
|
bcs @L1 ;
|
|
|
|
lsr a ; a /= 2;
|
|
|
|
beq @L2 ; if (a != 0)
|
|
|
|
ldy NewValue ; y = NewValue
|
|
|
|
rts ; return
|
|
|
|
|
|
|
|
@L1: ora #%11000000 ; else or in high order bits
|
|
|
|
cmp #$FF ; if (a != -1)
|
|
|
|
beq @L2
|
|
|
|
sec
|
|
|
|
ror a ; a /= 2
|
|
|
|
dex ; high byte = -1 (X = $FF)
|
|
|
|
ldy NewValue
|
|
|
|
rts
|
|
|
|
|
|
|
|
@L2: txa ; A = $00
|
|
|
|
rts
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
.endproc
|
2001-09-08 15:24:54 +00:00
|
|
|
|
|
|
|
; --------------------------------------------------------------------------
|
|
|
|
; Data
|
|
|
|
|
|
|
|
.bss
|
|
|
|
|
2001-09-13 15:27:19 +00:00
|
|
|
Initialized: .res 1 ; True if mouse initialized
|
|
|
|
OldInitStatus: .res 1 ; Old IRQ flag value
|
2001-09-08 15:24:54 +00:00
|
|
|
OldValue: .res 1 ; Temp for MoveCheck routine
|
|
|
|
NewValue: .res 1 ; Temp for MoveCheck routine
|
2001-09-12 16:30:27 +00:00
|
|
|
YCorr: .res 1 ; Correction for Y coordinate
|
2001-09-08 15:24:54 +00:00
|
|
|
|
2001-09-08 15:35:13 +00:00
|
|
|
Invisible: .res 1 ; Is the mouse invisible?
|
2001-09-08 15:24:54 +00:00
|
|
|
OldPotX: .res 1 ; Old hw counter values
|
|
|
|
OldPotY: .res 1
|
|
|
|
|
|
|
|
XPos: .res 2 ; Current mouse position, X
|
|
|
|
YPos: .res 2 ; Current mouse position, Y
|
|
|
|
|
|
|
|
XMin: .res 2 ; X1 value of bounding box
|
|
|
|
YMin: .res 2 ; Y1 value of bounding box
|
|
|
|
XMax: .res 2 ; X2 value of bounding box
|
|
|
|
YMax: .res 2 ; Y2 value of bounding box
|
|
|
|
|
|
|
|
|