Author Topic: Is there a peek() to get the value of a certain ink?  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.113
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1279
  • Likes Given: 2565
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.

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.113
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1279
  • Likes Given: 2565

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.893
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1871
Re: Is there a peek() to get the value of a certain ink?
« Reply #2 on: 10:08, 02 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

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.752
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 4229
  • Likes Given: 445
Re: Is there a peek() to get the value of a certain ink?
« Reply #3 on: 10:41, 02 December 11 »
Highlighting the entire text with Ctrl-A makes it slightly easier on the eyes.

Bryce.

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.893
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1104
  • Likes Given: 1871
Re: Is there a peek() to get the value of a certain ink?
« Reply #4 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!
* 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

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: Is there a peek() to get the value of a certain ink?
« Reply #5 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.

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.113
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1279
  • Likes Given: 2565
Re: Is there a peek() to get the value of a certain ink?
« Reply #6 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. ;)