samiam95124 / Pascal-P6

6th version of Niklaus Wirth's original Pascal language compiler system
Other
28 stars 9 forks source link

Signed addresses #147

Open samiam95124 opened 5 months ago

samiam95124 commented 5 months ago

The address format changes to signed offsets only

At present

All addresses are unsigned and equivalent to their actual addresses.

The proposal

All addresses inside the Pascal-P machine become signed offsets. This change would be entirely contained within pint/pmach/cmach. The debugger would need to compensate for such offsets and convert them to real address equivalents as required.

Problems

This changes the format of addresses such that dumping them does not tell you what the actual address is. However, this can be compensated for in the debugger.