86
Developer's Corner / Re: FBSL - How to use machine code to get your CPU name
« on: March 18, 2006, 06:25 PM »
Hi,
Peek and Poke exist in FBSL also, but they have been enhanced :)
Peek( [@ ]addr[+offset], [$%!#]numofbytes )
Parameters
[@ ]addr[+offset] : address from where to retrieve value(s). @ and offset are extended options
[$%!#]numofbytes : you have to precise the very number of bytes to retrieve from the addr variable, and you have to precise the very type by prefixing the very offset by $, %, ! or #
------------------------------------
Poke( [@ ]addr[+offset], [$%!#]val )
Parameters
[@ ]addr[+offset] : variable [address] where to write value(s).
[$%!#]val : value(s) to write to at mandated address. You have to precise the very type by prefixing the very offset by $, %, ! or #
So ? :)
Looks remarkably like what you used to have to do with a Sinclair ZX81 back in the early 70s ;)
Anyone else remember peeking and poking bytes in memory?-Carol Haynes (March 18, 2006, 06:21 PM)
Peek and Poke exist in FBSL also, but they have been enhanced :)
Peek( [@ ]addr[+offset], [$%!#]numofbytes )
Parameters
[@ ]addr[+offset] : address from where to retrieve value(s). @ and offset are extended options
[$%!#]numofbytes : you have to precise the very number of bytes to retrieve from the addr variable, and you have to precise the very type by prefixing the very offset by $, %, ! or #
------------------------------------
Poke( [@ ]addr[+offset], [$%!#]val )
Parameters
[@ ]addr[+offset] : variable [address] where to write value(s).
[$%!#]val : value(s) to write to at mandated address. You have to precise the very type by prefixing the very offset by $, %, ! or #
So ? :)