Post Reply 
(HP50g) HpPascal and contrast of the screen
10-27-2017, 08:16 PM (This post was last modified: 10-27-2017 08:17 PM by Gilles59.)
Post: #11
RE: (HP50g) HpPascal and contrast of the screen
(10-27-2017 05:53 PM)DavidM Wrote:  Based on the code samples, the following may do what you need. I would recommend trying this on an emulated system first, of course:

Code:
function GetContrast: byte;
begin
   asm
      LC(5) #101
      D1=C
      A=DAT1 B
      LC(2) #1F
      A=A&C B
      C=R1 A
      D1=C
      DAT1=A B
   end;
end;

I get an error at compilation phase : Unknown instruction in " A=A&C B "
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (HP50g) HpPascal and contrast of the screen - Gilles59 - 10-27-2017 08:16 PM



User(s) browsing this thread: 4 Guest(s)