.OSWVECS EQUW KEYBOARD \ 240 (&F0) 0 = Scan the keyboard EQUW PIXEL \ 241 (&F1) 1 = Draw space view pixels EQUW MSBAR \ #DOmsbar = 242 (&F2) 2 = Update missile indicators EQUW WSCAN \ #wscn = 243 (&F3) 3 = Wait for vertical sync EQUW SC48 \ #onescan = 244 (&F4) 4 = Draw ship on 3D scanner EQUW DOT \ #DOdot = 245 (&F5) 5 = Draw a dot on the compass EQUW DODKS4 \ #DODKS4 = 246 (&F6) 6 = Scan for a specific key EQUW HLOIN \ 247 (&F7) 7 = Draw orange sun lines EQUW HANGER \ 248 (&F8) 8 = Display the hangar EQUW SOMEPROT \ 249 (&F9) 9 = Copy protection EQUW SAFE \ 250 (&FA) 10 = Do nothing EQUW SAFE \ 251 (&FB) 11 = Do nothing EQUW SAFE \ 252 (&FC) 12 = Do nothing EQUW SAFE \ 253 (&FD) 13 = Do nothing EQUW SAFE \ 254 (&FE) 14 = Do nothing EQUW SAFE \ 255 (&FF) 15 = Do nothing EQUW SAFE \ These addresses are never used and have no effect, as EQUW SAFE \ they are out of range for one-byte OSWORD numbers EQUW SAFEName: OSWVECS [Show more] Type: Variable Category: Tube Summary: The lookup table for OSWORD jump commands (240-255) Deep dive: 6502 Second Processor Tube communicationContext: See this variable in context in the source code References: This variable is used as follows: * NWOSWD uses OSWVECS
On entry into these routines, OSSC(1 0) points to the parameter block passed to the OSWORD call in (Y X). OSSC must not be changed by the routines, as it is used by NWOSWD to preserve the values of X and Y through the revectored OSWORD call. OSSC(1 0) can be copied into SC(1 0) to avoid changing it.
[X]
Subroutine DODKS4 (category: Keyboard)
Implement the #DODKS4 command (scan the keyboard to see if a specific key is being pressed)
[X]
Subroutine DOT (category: Dashboard)
Implement the #DOdot command (draw a dash on the compass)
[X]
Subroutine HANGER (category: Ship hangar)
Implement the OSWORD 248 command (display the ship hangar)
[X]
Subroutine HLOIN (category: Drawing lines)
Implement the OSWORD 247 command (draw the sun lines in the horizontal line buffer in orange)
[X]
Subroutine KEYBOARD (category: Keyboard)
Implement the OSWORD 240 command (scan the keyboard and joystick and log the results)
[X]
Subroutine MSBAR (category: Dashboard)
Implement the #DOmsbar command (draw a specific indicator in the dashboard's missile bar)
[X]
Subroutine PIXEL (category: Drawing pixels)
Implement the OSWORD 241 command (draw space view pixels)
[X]
Subroutine SC48 (category: Dashboard)
Implement the #onescan command (draw a ship on the 3D scanner)
[X]
Subroutine SOMEPROT (category: Copy protection)
Implement the OSWORD 249 command (some copy protection)
[X]
Subroutine WSCAN (category: Drawing the screen)
Implement the #wscn command (wait for the vertical sync)