From 91b21db725540043640edda6f28b798f4ffcb7c5 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 23 Jan 2023 15:08:24 +0100 Subject: Add example of small functional language and run time system --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index ceba168..ad03d23 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,10 @@ said to be in the 'branch delay slot'. For example, this does not loop endlessly even though the body of `main_loop_delay` seems empty: ``` - lui $2,0xf - ori $5,0xffff + lui $1,0xf main_loop_delay: - bne $2,$0,main_loop_delay - addiu $2,-1 + bne $1,$0,main_loop_delay + addiu $1,-1 ``` Also note that when the file ends with a branch/jump, a `nop` *must* follow to -- cgit v1.2.3