Update comments

This commit is contained in:
Joscha 2019-11-11 11:19:43 +00:00
parent b0d68ed8d6
commit 6002c9fb13

View file

@ -25,32 +25,32 @@ main:
STSP STSP
main-loop: main-loop:
; while (current-number != max-number) ; while (current-number != max-number) {
LDV current-number LDV current-number
EQL max-number EQL max-number
JMN main-halt JMN main-loop-end
; *ptr = fib(current-number) ; *ptr = fib(current-number);
LDV current-number LDV current-number
STRS 1 STRS 1
CALL fib CALL fib
LDV tmp1 LDV tmp1
STIV ptr STIV ptr
; current-number++ ; current-number++;
LDV current-number LDV current-number
ADC 1 ADC 1
STV current-number STV current-number
; ptr++ ; ptr++;
LDV ptr LDV ptr
ADC 1 ADC 1
STV ptr STV ptr
; Aaand loop ; }
JMP main-loop JMP main-loop
main-loop-end:
main-halt:
HALT HALT
; This function recursively calculates the n-th fibonacci number. It ; This function recursively calculates the n-th fibonacci number. It