Skip to content

Commit bd48ea9

Browse files
committed
corewar.org
1 parent 3b444d4 commit bd48ea9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/corewar.org

+6-6
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ VM is *BIG ENDIAN*
145145
| [[st]] | <<0x03>> | Take a registry and a [registry/indirect], *store* value of registry | *YES* | *YES* | *YES* | 5 |
146146
| | | toward the second argument. (st r1, 42) store value at PC+(42%IDX_MOD) | | | | |
147147
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
148-
| [[add]] | <<0x04>> | Take 3 registries, add first 2, *result in the 3rd*. Modify the carry | *YES* | *NO* | *YES* | 10 |
148+
| [[add]] | <<0x04>> | Take 3 registries, add first 2, *result in the 3rd*. | *YES* | *NO* | *YES* | 10 |
149149
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
150150
| [[sub]] | <<0x05>> | Same as add but uses *substraction* | *YES* | *NO* | *YES* | 10 |
151151
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
@@ -166,9 +166,9 @@ VM is *BIG ENDIAN*
166166
| [[fork]] | <<0x0C>> | Take an index, create *new process* that *inherits* different states of | *NO* | *YES* | *NO* | 800 |
167167
| | | its father, except it's PC which will be *PC + (1st param % IDX_MOD)* | | | | |
168168
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
169-
| [[lld]] | <<0x0D>> | Long-load, ld *without modulo*. Modify the carry | *YES* | *NO* | *YES* | 10 |
169+
| [[lld]] | <<0x0D>> | Long-load, ld *without modulo*. | *YES* | *NO* | *YES* | 10 |
170170
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
171-
| [[lldi]] | <<0x0E>> | Same as *ldi* without any modulo. Modify the carry | *YES* | *NO* | *YES* | 50 |
171+
| [[lldi]] | <<0x0E>> | Same as *ldi* without any modulo. | *YES* | *NO* | *YES* | 50 |
172172
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
173173
| [[lfork]] | <<0x0F>> | Long-fork, fork *without modulo* in the address | *NO* | *NO* | *NO* | 1000 |
174174
|-------------+----------+-------------------------------------------------------------------------+-------+-------------------+-------------+----------|
@@ -471,15 +471,15 @@ live: live %1
471471
|---------------+---------------------------+---------------------------------------|
472472
| <<zjmp>> | Jump if Zero | *zjmp* S(D2) |
473473
|---------------+---------------------------+---------------------------------------|
474-
| <<ldi>> | Indirect Load | *ldi* S(RG/ID/D2), S(ID/D2), D(RG) |
474+
| <<ldi>> | Indirect Load | *ldi* S(RG/ID/D2), S(D2/RG), D(RG) |
475475
|---------------+---------------------------+---------------------------------------|
476-
| <<sti>> | Indirect Store | *sti* S(RG), S(RG/ID/D2), S(ID/D2) |
476+
| <<sti>> | Indirect Store | *sti* S(RG), S(RG/ID/D2), S(D2/RG) |
477477
|---------------+---------------------------+---------------------------------------|
478478
| <<fork>> | Fork | *fork* S(D2) |
479479
|---------------+---------------------------+---------------------------------------|
480480
| <<lld>> | Long Direct Load | *lld* S(ID/D4), D(RG) |
481481
|---------------+---------------------------+---------------------------------------|
482-
| <<lldi>> | Long Indirect Load | *lldi* S(RG/ID/D2), S(ID/D2), D(RG) |
482+
| <<lldi>> | Long Indirect Load | *lldi* S(RG/ID/D2), S(D2/RG), D(RG) |
483483
|---------------+---------------------------+---------------------------------------|
484484
| <<lfork>> | Long Fork | *lfork* S(D2) |
485485
|---------------+---------------------------+---------------------------------------|

0 commit comments

Comments
 (0)