Post Reply 
(HP50g) HpPascal and contrast of the screen
10-27-2017, 05:53 PM
Post: #8
RE: (HP50g) HpPascal and contrast of the screen
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;
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 - DavidM - 10-27-2017 05:53 PM



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