Z-80 "Arm Wresling System" 1983.11 st | ||||||
PO1: | EQU 80 | ADCスタート出力・データ入力 | ||||
PO2: | EQU 81 | パルスモータ信号出力 | ||||
PO3: | EQU 82 | EOC信号入力 | ||||
. | ||||||
アドレスコード | 命令コ-ド | アドレス | 機械語 | アセンブラ | ||
10110000 00000000 | 00111110 | (STA): | B000 | 3E | LD A,02 | 本体角度 AD変換 |
10110000 00000001 | 00000010 | 02 | ||||
10110000 00000010 | 11001101 | B002 | CD | CALL(AD) | ||
10110000 00000011 | 01001111 | 4F | ||||
10110000 00000100 | 10110000 | B0 | ||||
10110000 00000101 | 01001111 | B005 | 4F | LD C,A | (0-FF) | |
10110000 00000110 | 00111110 | B006 | 3E | LD A,01 | 握力計A AD変換 | |
10110000 00000111 | 00000001 | 01 | ||||
10110000 00001000 | 11001101 | B008 | CD | CALL(AD) | ||
10110000 00001001 | 01001111 | 4F | ||||
10110000 00001010 | 10110000 | B0 | ||||
10110000 00001011 | 11000011 | B00B | CB | SRL A | (FF-0)/2 | |
10110000 00001100 | 00111111 | 3F | ||||
10110000 00001101 | 01000111 | B00D | 47 | LD B,A | ||
10110000 00001110 | 00111110 | B00E | 3E | LD A,00 | 握力計B AD変換 | |
10110000 00001111 | 00000000 | 00 | ||||
10110000 00010000 | 11001101 | B010 | CD | CALL(AD) | (0-FF)/2 | |
10110000 00010001 | 01001111 | 4F | ||||
10110000 00010010 | 10110000 | B0 | ||||
10110000 00010011 | 11000011 | B013 | CB | SRL A | 握力計A+B | |
10110000 00010100 | 00101111 | 2F | ||||
10110000 00010101 | 10000000 | B015 | 80 | ADD A,B | (0-FF) | |
10110000 00010110 | 01000111 | B016 | 47 | LD B,A | ||
10110000 00010111 | 10010001 | B017 | 91 | SUB C | 上限で比較 | |
10110000 00011000 | 11111010 | B018 | FA | JM(CCW) | 左回転 | |
10110000 00011001 | 01001000 | 28 | ||||
10110000 00011010 | 10110000 | B0 | ||||
10110000 00011011 | 11010110 | B01B | D6 | SUB 10 | 下限で比較 | |
10110000 00011100 | 00010000 | 10 | ||||
10110000 00011101 | 11110010 | B01D | F2 | JP(CW) | 右回転 | |
10110000 00011110 | 00100011 | 23 | ||||
10110000 00011111 | 10110000 | B0 | ||||
10110000 00100000 | 11000011 | B020 | C3 | JM(STA) | ||
10110000 00100001 | 00000000 | 00 | ||||
10110000 00100010 | 10110000 | B0 | ||||
10110000 00100011 | 00111110 | (CW): | B023 | 3E | LD A,08 | 右回転パルス |
10110000 00100100 | 00001000 | 08 | . | |||
10110000 00100101 | 11000011 | BO25 | C3 | JM(1) | . | |
10110000 00100110 | 00101010 | 2A | . | |||
10110000 00100111 | 10110000 | B0 | . | |||
10110000 00101000 | 00111110 | (CCW): | B028 | 3E | LD A,04 | 左回転パルス |
10110000 00101001 | 00000100 | 04 | . | |||
10110000 00101010 | 00011110 | (1): | B02A | 1E | LD E,60 | パルス幅パラメータ |
10110000 00101011 | 01100000 | 60 | . | |||
10110000 00101100 | 11010011 | (2): | B02C | D3 | OUT 81,A | パルスモータ信号出力 |
10110000 00101101 | 11100001 | 81 | . | |||
10110000 00101110 | 00011101 | B02E | 1D | DEC E | . | |
10110000 00101111 | 11000010 | B02F | C2 | JNZ(2) | . | |
10110000 00110000 | 00101100 | 2C | . | |||
10110000 00110001 | 10110000 | B0 | . | |||
10110000 00110010 | 00011110 | B032 | 1E | LD E,20 | パルス幅パラメータ | |
10110000 00110011 | 00100000 | 20 | . | |||
10110000 00110100 | 00111110 | B034 | 3E | LD A,00 | . | |
10110000 00110101 | 00000000 | 00 | . | |||
10110000 00110110 | 11010011 | (3): | B036 | D3 | OUT 81,A | モータ信号出力リセット |
10110000 00110111 | 10000001 | 81 | . | |||
10110000 00111000 | 00011101 | B038 | 1D | DEC E | . | |
10110000 00111001 | 11000010 | B039 | C2 | JNZ(3) | . | |
10110000 00111010 | 00110110 | 36 | . | |||
10110000 00111011 | 10110000 | B0 | . | |||
10110000 00111100 | 11000011 | B03C | C3 | JM(STA) | . | |
10110000 00111101 | 00000000 | 00 | . | |||
10110000 00111110 | 10110000 | B0 | . | |||
10110000 00111111 | 11010011 | (AD): | B03F | D3 | OUT 80,A | ADCチャンネル指定 |
10110000 01000000 | 10000000 | 80 | . | |||
10110000 01000001 | 11011011 | (4): | B041 | DB | IN A,82 | EOD 0待ち |
10110000 01000010 | 10000010 | 82 | . | |||
10110000 01000011 | 11001011 | B043 | CB | BIT 7,A | . | |
10110000 01000100 | 01111111 | 7F | . | |||
10110000 01000101 | 11000010 | B045 | C2 | JNZ(4) | . | |
10110000 01000110 | 00100001 | 41 | . | |||
10110000 01000111 | 10110000 | B0 | . | |||
10110000 0100100 | 11011011 | (5): | B048 | DB | IN A,82 | EOD 1待ち |
10110000 01001001 | 10000010 | 82 | . | |||
10110000 01001010 | 11001011 | B04A | CB | BIT 7,A | . | |
10110000 01001011 | 01111111 | 7F | . | |||
10110000 01001100 | 11001010 | B04C | CA | JZ(5) | . | |
10110000 01001101 | 00101000 | 48 | . | |||
10110000 01001110 | 10110000 | B0 | . | |||
10110000 01001111 | 11011011 | B04F | DB | IN A,80 | . | |
10110000 01010000 | 10000000 | 80 | . | |||
10110000 01010001 | 11001001 | B051 | C9 | RET | . |