[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread Gavin Scott via cctalk
On Sun, Nov 3, 2024 at 10:35 PM Tony Duell via cctalk wrote: > This is one of the few high level languages I've seen with a > specific instruction for self-modifying code. Don't forget the ALTER statement in COBOL which changes a GO TO statement in some paragraph somewhere to point to a different

[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread Tony Duell via cctalk
On Mon, Nov 4, 2024 at 12:05 AM dwight via cctalk wrote: > > I/O addresses for the 8080 come to mind. BASIC-09 under OS-9 (6809 processor) lets you execute a system call from a BASIC program. The problem is that a system call is coded as a software interrupt instruction followed by a byte giving

[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread Chuck Guzis via cctalk
On 11/3/24 15:56, dwight wrote: > I/O addresses for the 8080 come to mind. > Dwight Well, in theory you could avoid that one by constructing 256-entry tables for IN and OUT instructions and using a computed CALL/JUMP to access the right one. The 8080 I/O address space is only 256 addresses. Not

[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread dwight via cctalk
I/O addresses for the 8080 come to mind. Dwight From: Chuck Guzis via cctalk Sent: Sunday, November 3, 2024 3:36 PM To: Mike Katz via cctalk Cc: Chuck Guzis Subject: [cctalk] Re: Self modifying code was HCF On 11/3/24 14:48, Mike Katz via cctalk wrote

[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread Chuck Guzis via cctalk
On 11/3/24 14:48, Mike Katz via cctalk wrote: > Though not Halt and Catch Fire you guys are forgetting the joy of self > modifying code. Indeed, this was the *only* way to do things on early first- and second-generation systems. Even the lowly 1620 CADET, without the optional indirect addressing

[cctalk] Re: Self modifying code was HCF

2024-11-03 Thread Mike Katz via cctalk
Though not Halt and Catch Fire you guys are forgetting the joy of self modifying code. That is how many PDP-8 programs worked.  Even the bin loader where the jump to loop instruction would be replaced with a jump to loaded program start by the loader itself. There were many programs that wer