From 7349354394833dac621778b6f6ebd0a0fdeedb71 Mon Sep 17 00:00:00 2001 From: Arthur Paulino Date: Mon, 1 Jan 2018 11:36:07 -0300 Subject: [PATCH] organizing examples --- Assembly-program-examples.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assembly-program-examples.md b/Assembly-program-examples.md index 4ba5161..0d04a4b 100644 --- a/Assembly-program-examples.md +++ b/Assembly-program-examples.md @@ -80,11 +80,9 @@ y_is_positive: RET 2 ; Return and POP our 2 arguments ``` +### Constants by hackersoup with help from [contributors](https://github.com/simon987/Much-Assembly-Required/wiki/Assembly-program-examples/_history)
-Constants by hackersoup with help from -contributors -
Insert this code before the new code you write for MuchAssemblyRequired, and use a text editor like VSCode, Notepad++, Sublime, etc. for auto-complete.
@@ -257,8 +255,10 @@ FLOPPY_WRITE_SECTOR equ 3 ; Cost: 1kJ ```
-example usage using these constants +#### Example ```assembly +; paste constants definitions here +; the rest of your code goes like .text CALL print_battery @@ -275,7 +275,7 @@ print_battery: ; is stored in B register now MOV A, HOLO_DISPLAY_HEX ; HOLO_DISPLAY_HEX == BATTERY_POLL == 1 - ; makes this redundant, but you get the idea + ; makes this redundant, but you get the idea. HWI HWID_HOLO ; value in B register is displayed on your bot POP B @@ -283,7 +283,7 @@ print_battery: RET ``` -Dump memory to disk +### Dump memory to disk ```assembly HWID_FLOPPY equ 0xB