Thank you Ken,
 
I did not remember that it is that simple just using CALL address, A,HL
That does exactly what I want.
 
Regards
Georg

Georg Käter
Gangolfsweg 44
D-52076 Aachen
Tel.        : +49  2408 7194987
Fax.        : +49  2408 7196758
Mobil    : +49  177 6441572
E-Mail   : [email protected] 

========== Ihre Nachricht ==========================================

von      : Kenneth Pettit <[email protected]>
gesendet : Dienstag, 1. April 2025, 15:42
an       : [email protected]
Betreff  : [M100] How to set CPU register from BASIC

__________ Originalnachricht _______________________________________


> Hi Georg,

> There isn't a way of setting all of the registers from BASIC ... though I'm 
> not sure why you want to.  The BASIC intrepreter uses these and would simply 
> clobber them  even if there were a way.  For A and HL, these can be set 
> during a CALL instruction to a piece of Machine code (You have to provide the 
> routine somewhere) on M100/T102, etc. by simply using the two passing 
> parameters:

>   CALL ADDR, 255, 20000    <=  A = 255, HL = 20000, jump to address ADDR

> But these values will not be persisted after the return.

> As far as overview of addresses, there are documents under "Maps & LIsts..." 
> here:  http://club100.org/library/libref.html as well as other publications 
> at bitchin under "Model T Developer Reference":  
> https://bitchin100.com/wiki/index.php?title=Model_T_DocGarden#Documentation  
> (Model T Cross Maps for instance).

> Ken


> On 4/1/25 3:43 AM, Georg Käter wrote:
>> Hi community,
>>  
>> how to set CPU register A, H and others direct from BASIC by i.e. POKE 
>> command?
>> An overview of addresses used @ all M100 family devices would be great.
>>  
>> Regards
>> Georg
>> Georg Käter
>> Gangolfsweg 44
>> D-52076 Aachen
>> Tel.        : +49  2408 7194987
>> Fax.        : +49  2408 7196758
>> Mobil    : +49  177 6441572
>> E-Mail   :  [email protected] 

>> Confidentiality Notice:
>> This message is confidential. The information contained in this message is 
>> intended only for the personal
>> and confidential use of the recipient(s) named above. If you are not the 
>> intended recipient, please do not
>> read, copy, or use it and do not disclose it to others. Please inform us 
>> immediately of the delivery error
>> and return the original message to us via e-mail.

__________ Ende Originalnachricht __________________________________

Confidentiality Notice:
This message is confidential. The information contained in this message is 
intended only for the personal
and confidential use of the recipient(s) named above. If you are not the 
intended recipient, please do not
read, copy, or use it and do not disclose it to others. Please inform us 
immediately of the delivery error
and return the original message to us via e-mail.

Reply via email to