haplesshero13 / lc3platform

An install script for lc3tools and lcc-lc3. Requires Git, GCC, wish, flex, and standard UNIX tools.
4 stars 0 forks source link

compiled binaries only run HALT. #1

Open mhashim6 opened 5 years ago

mhashim6 commented 5 years ago

I've installed the lc3platform, I've written a simple c program to test it. and I ran it on several (working) lc3-vm implementations. but it always executes HALT and ignores the rest of the code, even though the generated assembly seems fine. At first I compiled on my 64bit machine running elementary os. and I suspected the issue was that my machine was 64bit, so i installed the lc3platform on my Raspberry Pi, and compiled my test.c file, and moved the generated .obj file to my machine. but this didn't resolve the issue. my test.c file: test.zip

Screenshot from 2019-04-14 21 08 22

mhashim6 commented 5 years ago

I also tested other equally-simple programs, they all run HALT then (as expected) stop.