Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
system_routines:human_interface [2016/06/05 16:28]
ex_writer [SENTRY]
system_routines:human_interface [2016/06/11 12:45] (current)
ex_writer [MSKTD]
Line 43: Line 43:
 Mode 01 and 10 expect the returned-to point to be interpretive;​ mode 00 expect it to be machine instructions. Mode 01 and 10 expect the returned-to point to be interpretive;​ mode 00 expect it to be machine instructions.
  
-//Return code// (byte 0, bit 0–5) ​<wrap help>from SENTRY?</​wrap>​+//Return code// (byte 0, bit 0–5) from [[#SENTRY]] routine (e.g., ST0, SJ1, SCT7, etc.)
  
 //Handler address// (bytes 1 and 2) contains the address of the handling routine. //Handler address// (bytes 1 and 2) contains the address of the handling routine.
Line 49: Line 49:
 End of list is indicated by a terminator byte that is greater than or equal to $C0. End of list is indicated by a terminator byte that is greater than or equal to $C0.
  
-See [[human interface#​keyboard input example|Keyboard Input Example]] below for example [[#sentry|SENTRY]] and DOIT usage.+---- 
 + 
 +=== Example: Football DOIT Table === 
 + 
 +<code z80> 
 +;​********** 
 +;* 
 +;*   ​Player Input Transition Table 
 +;* 
 +
 +DOTABLE: ​ RC    SCT7,​DOCT7,​0 ​  ; CT7 
 +          RC    ST0,​DOTRIG0,​0 ​ ; TRIGGER 0 
 +          RC    ST1,​DOTRIG1,​0 ​ ; TRIGGER 1 
 +          RC    SP0,​DOKNOB0,​0 ​ ; Pot. 0 
 +          RC    SP1,​DOKNOB1,​0 ​ ; Pot. 1 
 +          RC    SJ0,​DOJOY0,​0 ​  ; Joystick 0 
 +          RC    SJ2,​DOJOY2,​0 ​  ; Joystick 2 
 +          RC    SJ3,​DOJOY3,​0 ​  ; Joystick 3 
 +          RC    SJ1,​DOJOY1,​ENDx ​ ; Joystick 1 
 +</​code>​ 
 + 
 +Also see the [[human interface#​keyboard input example|Keyboard Input Example]] below for example [[#SENTRY]] and DOIT usage.
 ==== DOITB ==== ==== DOITB ====
  
Line 149: Line 170:
 ==== MSKTD ==== ==== MSKTD ====
  
-JOYSTICK MASK TO DELTAS+CONVERT ​JOYSTICK MASK TO DELTAS
  
 | Calling Sequence: | <code z80>​SYSTEM ​   MSKTD</​code>​ or <code z80>​LD ​       B,(joystick mask) | Calling Sequence: | <code z80>​SYSTEM ​   MSKTD</​code>​ or <code z80>​LD ​       B,(joystick mask)