Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CLS/Fade out ASM Sub-routine
#1
This is a small clear screen, that sort of fades out the screen pixel by pixel to the background colour.  I took it from one of the Melbourne house books, can't remember which one though.

No idea if it breaks anything else, but I've not had any issues.

Code:
SUB CLSFadeOut() ' Fade out Screen Clearing     ASM         LD DE,08feh         NXTFADE:             LD A,E             RLCA             RLCA             RLCA             LD E,A             LD HL,4000H             LD BC,0018H             NXT:                 LD A, (HL)                 AND E                 LD (HL),A                 INC HL             DJNZ NXT             DEC C             JR NZ,NXT             DEC D         JR NZ,NXTFADE         LD A,(5C8DH)         LD (HL),A         LD D,H         LD E,L         INC DE         LD BC,02C0H         LDIR         LD A,(5C48H)         LD (HL),A         LD C,3FH         LDIR     END ASM END SUB
Reply


Messages In This Thread
CLS/Fade out ASM Sub-routine - by tubz74 - 2025-10-05, 02:37 PM
RE: CLS/Fade out ASM Sub-routine - by boriel - 2025-10-05, 02:42 PM
RE: CLS/Fade out ASM Sub-routine - by tubz74 - 2025-10-05, 03:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)