• Please review our updated Terms and Rules here

STORARRY.PAS - Another Program for my website

CP/M User

Veteran Member
Joined
May 2, 2003
Messages
2,986
Location
Back of Burke (Guday!), Australia
For this month, I was curious to see if a Turbo Pascal array with an absolute address could have an Inline Machine Code poking values into it (from a M/C loop). That's where this example comes in. In it, it simply pokes values from 1 to 10 or 10 to 1 & puts those values into the array, which can be easily viewed from the example shown.

In addition to this, I'm not sure how universal this code maybe amonst other Z80s, so I've taken the precaution that this maybe CPC Specific, however there's no actual code which is only used on the CPCs. The code does used an area of memory which might be used for more vital bits of code (e.g. CP/M) on other computers & while you're welcomed to test it, if you do know of an high area in memory which can fit 10 bytes of code, then I'd certainally recommend you changing the absolute address of that array & the address in the first line of Inline Machine Code to reflect that address.

Cheers,
CP/M User.

For a Direct Link:
http://www.geocities.com/cpm22_user/programs/Amstrad_CPC/TurboPAS/
 
Back
Top