Jump to content



Photo
- - - - -

problem with contrast


  • Please log in to reply
4 replies to this topic

#1 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 26 May 2003 - 11:44 AM

I use the folowing Code:

MOV CX,17
@@dark:
MOV wait1,1
MOV BL,0
MOV AH,22h
INT 7Ch
call delay
loop @@dark

to make the screen 17 times darker but it don't seems to work (liner/gray mode 0DBh )
Can anyone help me? I dont want to write all registers 17 times!

#2 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

Posted 26 May 2003 - 11:47 AM

Haven't used this interrupt (or your delay function..) myself, but you might wanna save cx across your loop...

#3 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 26 May 2003 - 02:41 PM

CX is pushed/popped by the delay function (it uses int 02)

#4 BradN

BradN

    Casio Addict

  • Members
  • PipPipPip
  • 69 posts

Posted 05 June 2003 - 05:03 PM

What happens to cx during the interrupt call?

#5 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 06 June 2003 - 06:29 AM

you mean 7Ch??? don't know. will try some other push/pop before and after.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users