Comment by direwolf20
19 days ago
Oh, I see what you meant now. I don't think it works:
./test: line 1: hlt: command not found
./test: line 2: jmp: command not found
Do you get a dopamine hit out of this?
19 days ago
Oh, I see what you meant now. I don't think it works:
./test: line 1: hlt: command not found
./test: line 2: jmp: command not found
Do you get a dopamine hit out of this?
No, that is right, assembly doesn't work in what looks like the output of a Unix shell. Assembly is intended to be input to an assembler. Easy mistake to make, I suppose.
But I don't want to use an assembler.
Well, fine. Doesn't build. Says somehow about undefined symbol _main
Funny, I haven't told you anything about the architecture yet. But as you don't want to use the tools anyway and it is only a three byte program for the target machine, the good news is that it can quite easily be assembled by hand. Now, back to the C++ problem, any idea what the next step to get us past the issue?