Data update

This commit is contained in:
Ingy döt Net 2023-07-01 19:04:33 -04:00
parent 8f05c7136f
commit 0bf4da02c3
82 changed files with 2194 additions and 118 deletions

View file

@ -31,11 +31,13 @@ As written, this example assumes ASCII or a superset of it, such as any of the L
The above "machine code" corresponds to something like this in a hypothetical assembler language for a signed 8-bit version of the machine:
<pre>start:
0f 11 ff subleq (zero), (message), -1
11 ff ff subleq (message), -1, -1 ; output character at message
10 01 ff subleq (neg1), (start+1), -1
10 03 ff subleq (neg1), (start+3), -1
0f 0f 00 subleq (zero), (zero), start
0f 11 ff subleq (zero), (message), -1 ; subtract 0 from next character value to print;
; terminate if it's <=0
11 ff ff subleq (message), -1, -1 ; output character
10 01 ff subleq (neg1), (start+1), -1 ; modify above two instructions by subtracting -1
10 03 ff subleq (neg1), (start+3), -1 ; (adding 1) to their target addresses
0f 0f 00 subleq (zero), (zero), start ; if 0-0 <= 0 (i.e. always) goto start
; useful constants
zero:
00 .data 0