-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
//Adding 0xF6 to register 0 | ||
//0xF6 is the instruction to Write to disk | ||
ADD 0xFFF6 0XFF00 0x0000 | ||
|
||
//Debug: printing value in register 9 | ||
PRNT 0x0000 0x0000 0x0000 | ||
|
||
WBUS 0xff0A 0xff00 0x0000 | ||
//Writing the instruction 0xF6 (stored in register 0) to the bus | ||
//Writing the data that will be written: 0x0A | ||
//writing the address (line) in which the data will be written: 0x01 (line 2) | ||
//Remember, the first line is 0 | ||
WBUS 0xff0A 0xff01 0x0000 | ||
|
||
//Writing the instruction 0xF6 (stored in register 0) to the bus | ||
//Writing the data that will be written: 0x01 | ||
//writing the address (line) in which the data will be written: 0x09 (line 10) | ||
WBUS 0xFF01 0xFF09 0x0000 | ||
|
||
//Stopping the program | ||
STP 0x0000 0x0000 0x0000 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters