CPCWiki forum

General Category => Programming => Topic started by: mr_lou on 23:16, 01 December 11

Title: Is there a peek() to get the value of a certain ink?
Post by: mr_lou on 23:16, 01 December 11
Are the ink values located somewhere so that I can get them using a peek?

e.g. peek(some_address) returns the current ink 1 value.

Or... could I call &bc35,1 and then peek(address_of_b)?

Just messing around.
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: mr_lou on 23:31, 01 December 11
Nevermind, found this
http://www.cantrell.org.uk/david/tech/cpc/cpc-firmware/mem-use.htm (http://www.cantrell.org.uk/david/tech/cpc/cpc-firmware/mem-use.htm)
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: AMSDOS on 10:08, 02 December 11
Nevermind, found this
http://www.cantrell.org.uk/david/tech/cpc/cpc-firmware/mem-use.htm (http://www.cantrell.org.uk/david/tech/cpc/cpc-firmware/mem-use.htm)

Shame that document is in a poor colour scheme I was clearly straining my eyes on it!  :o  I thought I saw that document on cpctech.org.uk though I couldn't find it cause I think I've seen something similar in better colouring.
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: Bryce on 10:41, 02 December 11
Highlighting the entire text with Ctrl-A makes it slightly easier on the eyes.

Bryce.
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: AMSDOS on 00:23, 03 December 11
Highlighting the entire text with Ctrl-A makes it slightly easier on the eyes.

Bryce.

I know, I guess I'm just too lazy reaching for the CTRL+A, though surely people are whinging about it, and writing to get it fixed, I cannot help but think that this article maybe on the Wiki though, it looks rather familar. Must of been written back in the days of CRT might have been easier to read it on one of those screens, otherwise it's a very moody choice of colours and the person writing it wants you to CTRL+A!
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: Executioner on 02:14, 16 December 11
Since the address could vary for different versions, I'd recommend you use SCR_GET_INK firmware call instead.
Title: Re: Is there a peek() to get the value of a certain ink?
Post by: mr_lou on 08:42, 16 December 11
Since the address could vary for different versions, I'd recommend you use SCR_GET_INK firmware call instead.
Not easy from basic. ;)