Advertisement
boriel

scr_scroll

Nov 14th, 2021
3,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ld de, (SCREEN_ADDR)
  2.     ld b, 3
  3. 3:
  4.     push bc
  5.     ld a, 8
  6. 1:
  7.     ld hl, 32
  8.     add hl, de
  9.     ld bc, 32 * 7
  10.     push de
  11.     ldir
  12.     pop de
  13.     inc d
  14.     dec a
  15.     jr nz, 1b
  16.     push hl
  17.     ld bc, -32 - 256 * 7
  18.     add hl, bc
  19.     ex de, hl
  20.     ld a, 8
  21. 2:
  22.     ld bc, 32
  23.     push hl
  24.     push de
  25.     ldir
  26.     pop de
  27.     pop hl
  28.     inc d
  29.     inc h
  30.     dec a
  31.     jr nz, 2b
  32.     pop de
  33.     pop bc
  34.     djnz 3b
  35.  
  36.     dec de
  37.     ld h, d
  38.     ld l, e
  39.     ld a, 8
  40. 3:
  41.     push hl
  42.     push de
  43.     ld (hl), b
  44.     dec de
  45.     ld bc, 31
  46.     lddr
  47.     pop de
  48.     pop hl
  49.     dec d
  50.     dec h
  51.     dec a
  52.     jr nz, 3b
  53.  
  54.     ld de, (SCREEN_ATTR_ADDR)
  55.     ld hl, 32
  56.     add hl, de
  57.     ld bc, 32 * 23
  58.     ldir
  59.  
  60.     ld h, d
  61.     ld l, e
  62.     ld a, (ATTR_P)
  63.     ld (hl), a
  64.     inc de
  65.     ld bc, 31
  66.     ldir
  67.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement