Issues with the step 7 and 8 from the roadmap

114 views
Skip to first unread message

Nicolas Ojeda

unread,
Oct 17, 2022, 8:09:29 PM10/17/22
to XOS Users
Hello colleagues, I’m currently carrying out the expos project and found two small inconveniences. I’d like to know if you could give me your help, thank you very much in advance.

1) When performing stage 7, I manage to load everything correctly, but when I run the machine in debugger mode, it just shows “Machine is halting”. Is it supposed to just do that, or is the program intended to do anything else?


Here are the OS Startup and INIT codes:


OS Startup code:


loadi(63,13);

loadi(64,14);

[PTBR+0] = 63;

[PTBR+1] = "0100";

[PTBR+2] = 64;

[PTBR+3] = "0100";

[PTBR+4] = 78;

[PTBR+5] = "0110";

[PTBR+6] = 79;

[PTBR+7] = "0110";

[PTBR+8] = 65;

[PTBR+9] = "0100";

[PTBR+10] = 66;

[PTBR+11] = "0100";

[PTBR+12] = -1;

[PTBR+13] = "0000";

[PTBR+14] = -1;

[PTBR+15] = "0000";

[PTBR+16] = 76;

[PTBR+17] = "0110";

[PTBR+18] = 77;

[PTBR+19] = "0110";

PTLR = 10;

SP = 8*512;

[76*512] = [65 * 512 + 1];


Init:


0

2056

0

0

0

0

0

0

MOV R0,1

MOV R2, 5

GE

R2 R0

JZ R2, 2074

MOV R1, R0

MUL R1, R0

BRKP

ADD R0, 1

JMP 2058

INT 10


2) When loading the timer in stage 8, the xfs interface tells me the following:


Can’t open source file.

File n not found.

Error while trying to delete temporary file.


* When using the “ls” command, the sample_timer.xsm file is listed, so it exists.


Any answer is valuable, I really don’t know what else to do.

Thank you!

jeremy

unread,
Nov 19, 2022, 5:59:49 PM11/19/22
to XOS Users
Hello, for the program init, could it be because you are missing a coma (,) at the line GE R2 R0, where it should be GE R2, R0? Thus your init program wouldnt start.
Reply all
Reply to author
Forward
0 new messages