4 ms·
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
by direwolf20 9mo 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?
- 9rx 9mo agoNo, 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.
- direwolf20 9mo agoBut I don't want to use an assembler. Well, fine. Doesn't build. Says somehow about undefined symbol _main
- 9rx 9mo agoFunny, 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?