News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_mr_lou

Is there a peek() to get the value of a certain ink?

Started by mr_lou, 22:16, 01 December 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mr_lou

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.


AMSDOS

Quote from: mr_lou on 22:31, 01 December 11
Nevermind, found this
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.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Bryce

Highlighting the entire text with Ctrl-A makes it slightly easier on the eyes.

Bryce.

AMSDOS

Quote from: Bryce on 09:41, 02 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!
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Executioner

Since the address could vary for different versions, I'd recommend you use SCR_GET_INK firmware call instead.

mr_lou

Quote from: Executioner on 01:14, 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. ;)

Powered by SMFPacks Menu Editor Mod