Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Zoom a character
- ;RL MacGregor
- ;Assembler Directives
- ;ZeusEmulate = "48k"
- ;ZeusPC= 50000
- org 50000 ; Location of code
- ld a, 2 ; upper screen
- call 5633 ; open channel
- ld hl, ($5C36) ; 256 below start of character defs
- ld de,65 ; ASCII Char 65
- ld b,8 ; point hl to start
- char add hl,de ; of character
- djnz char ; definition
- ld b,8 ; Use b as loop counter
- loopy ld a,(hl) ; First byte of character
- bit 7, a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 6, a
- call nz, PRINTBLOCK
- call z PRINTSPACE
- bit 5, a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 4,a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 3,a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 2,a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 1,a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- bit 0,a
- call nz, PRINTBLOCK
- call z, PRINTSPACE
- inc hl
- ld a,13
- rst $10
- djnz loopy
- ret
- PRINTBLOCK push af
- ld a,143
- rst 16
- pop af
- ret
- PRINTSPACE push af
- ld a,32
- rst 16
- pop af
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement