ParanoidLittleMan Posted September 29, 2020 Share Posted September 29, 2020 This is something what is actually very simple, but is used in few games. And the reason is poor Atari documentation. Just did not give enough details about how to use. First step is to set joystick vector via XBIOS call 34 : * Setting joystick monitoring rutine : move.w #34,-(sp) *Kbdvbase trap #14 addq.l #2,sp move.l d0,a1 lea 24(a1),a1 * Joystick vector here move.l (a1),joymorg *Save original one (which is just an rts) move.l #moni,(a1) ....... Monitoring rutine self: moni * Joystick monitoring, very simple: * it is at joyvec address set with XBIOS 34 addq.l #1,a0 *a0 is odd move.w (a0),joyc * first byte is for joy 0, second for joy 1 rts joyc ds.w 1 Bit 7 is fire button Bit 0 up Bit 1 down Bit 2 left Bit 3 right 1 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.