diff options
| author | uvok | 2026-01-12 20:19:19 +0100 |
|---|---|---|
| committer | uvok | 2026-01-12 20:19:19 +0100 |
| commit | f135231bfda2c788699e6b6ead29195f640858af (patch) | |
| tree | fa9831f044f470135d82a3bebdd82c81867175c2 /nandgame | |
| parent | bf693280d23b37de9725e655fd36dfe502c25083 (diff) | |
Add example with loop
Diffstat (limited to 'nandgame')
| -rw-r--r-- | nandgame/assembler/ex4.asm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nandgame/assembler/ex4.asm b/nandgame/assembler/ex4.asm new file mode 100644 index 0000000..0a7f327 --- /dev/null +++ b/nandgame/assembler/ex4.asm @@ -0,0 +1,8 @@ + mov A, #0 + add ADM, #0, A + mov A, #10 + add D, #0, A +loop: + mov A, loop + dec.jne D, D + hlt |
