From b8c127861576527bcf919b38717a4154fd56465b Mon Sep 17 00:00:00 2001 From: Murad Karammaev Date: Sun, 14 Aug 2022 03:51:21 +0300 Subject: [PATCH] add mistake report: just two registers --- MISTAKES.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MISTAKES.md b/MISTAKES.md index f22455b..6b7b022 100644 --- a/MISTAKES.md +++ b/MISTAKES.md @@ -27,3 +27,10 @@ move CPU to an infinite loop. It is probably easier to implement than writing proper lexer/parser, but error reporting can be weird. + +## Two registers are really not enough + +Just imagine, you are trying to write a loop, you use +`R1` as your index variable and `R0` for your loop condition. +Now you have already ran out of registers and you didn't even +start writing loop body!