Fibbo 16 bits again

This commit is contained in:
Nogard 2026-03-22 07:41:02 +01:00
parent a882a07bc7
commit a1eb9116cc
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +1,4 @@
_main:
MOV R0 1 ; b
SUB R1 R1 ; b
SUB R2 R2 ; a
@ -12,8 +11,7 @@ _loop:
PUSH R0 ; Sauvegarde de b
PUSH R1
; R0 R1 => b R2 R3 => a. Retourne b = b + a = c
PUSH R1
PUSH R1 ; R0 R1 => b R2 R3 => a. Retourne b = b + a = c
SUB R1 R1
SUB R1 R2
SUB R0 R1
@ -40,8 +38,6 @@ _add16cr2fin:
POP R3 ; Reprise de b
POP R2
JMP _loop
_end:

BIN
Fibbonacci 16Bits.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB