mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Updated Hardware (markdown)
parent
54cd623e40
commit
da44e2dd28
@ -12,8 +12,7 @@ HWQ A
|
|||||||
|
|
||||||
The **HWI** (Hardware Interupt) instruction sends an interrupt to the hardware device at the specified address
|
The **HWI** (Hardware Interupt) instruction sends an interrupt to the hardware device at the specified address
|
||||||
```assembly
|
```assembly
|
||||||
; Get the current held item id
|
INVENTORY_HW equ 0x0006 ; An inventory module is connected at address 0x006. Define a constant
|
||||||
INVENTORY_HW equ 0x0006 ; An inventory module is connected at address 0x006
|
|
||||||
MOV A, 1 ; The Inventory hardware expects 1 (POLL) or 2 (CLEAR)
|
MOV A, 1 ; The Inventory hardware expects 1 (POLL) or 2 (CLEAR)
|
||||||
HWI INVENTORY_HW
|
HWI INVENTORY_HW
|
||||||
; B = current held item id
|
; B = current held item id
|
||||||
@ -29,4 +28,6 @@ HWI INVENTORY_HW
|
|||||||
- [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR)
|
- [LiDAR](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-LiDAR)
|
||||||
- [Keyboard](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Keyboard)
|
- [Keyboard](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Keyboard)
|
||||||
- [Hologram Projector](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Hologram)
|
- [Hologram Projector](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Hologram)
|
||||||
- [Battery](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Battery)
|
- [Battery](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Battery)
|
||||||
|
- [Random number generator](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware-Random-Number-Generator)
|
||||||
|
- [Clock](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Clock)
|
Loading…
x
Reference in New Issue
Block a user