mov rax, 0000000000000001h ; initialize AX (64 bits)When you change this code, be sure to leave the last 4 bytes as they are:
mov rbx, 0000000000000000h ; initialize BX (64 bits)
mov ecx, eax ; Save off AX
add rax, rbx ; Calculate next Fibonacci number
mov ebx, ecx ; Move old Fib into BX
jmp $-07h ; Jump back to continue algorithm
33 C0 F1 F4Once you're finished editing start64.ram, run SimNow and set a breakpoint at the address AD. The breakpoint dialog box to do this is shown below.
Note that you need to uncheck the "Use segment portion of address" check box.
Once you have the breakpoint set, you can click "Start" on the SimNow main window. Returning to the "Core" tab on the debugger, you'll see the instruction at AD listed first. You can then "Single Step" through your instructions, observing the values of the registers to verify the correctness of your code. Below are pictures of the SimNow main window and the "Core" tab of the debugger right before execution of the instruction at AD.