General Category > LisaList2
Workshop
D.Finni:
The following screenshot should be self-explanatory, except to say that the disassembly on the left is from my attempt at using Workshop to assemble "Samp," and the disassembly on the right is Samp as distributed by Apple.
The one on the left crashes with an illegal instruction error, the one on the right works A-OK.
rayarachelian:
Dumb request, but can you post the same thing, but this time in hex? Maybe, could you paste that in here as text rather than as an image so it can be fed to a disassembler, etc.?
They're obvious differences in the disassembly, but would help to see what text is in there in ASCII even with the high bits set.
I'm not saying I can fix it, but maybe something will become obvious beyond the disassembly.
D.Finni:
I encoded both the good and bad Samp applications with MacBinary and attached them to this post.
Searching for the hex string A8 6E A8 FE will put you more or less at the start of the main procedure code, the back-to-back traps to _InitGraf and _InitFonts, respectively.
Two more interesting observations:
1.) CODE resource 0, the jump table, is identical in both the good and bad Samp applications
2.) CODE resource 1, the main segment, is the same length, 986 bytes, in both Samp applications
D.Finni:
Aha! The plot thickens!
I tried using just the assembler. I wrote a little throw-away program that calls _SysBeep, then _ExitToShell. I assembled, linked, and the application runs A-OK on the Mac 512K. I get a beep, then I return to the Finder.
So now I'm thinking that the problem lies somewhere in the Linker. Maybe not the linker itself, but perhaps one of the Pascal libraries being linked in.
D.Finni:
--- Quote from: rayarachelian on March 01, 2019, 05:26:35 pm ---One thing to note, I've seen bugs in LisaEm where the linker throws either a bus error or "Bad Intrin Instruction" error, it may be possible to use LPW in a limited fashion, but you'll likely run into this at some point. A real Lisa would help in your efforts - at least until I find a fix for it, or you could use IDLE.
--- End quote ---
Looks like Tom Stepleton discovered this problem too back in 2014 when trying to use the Workshop.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version