Re: Press Ctrl+V or Cmd+V or whatever and post
Posted by: ISSOtm
Date: 2019-01-15 03:21:18
Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.
You can join Glitch City Research Institute to ask questions or discuss current developments.
You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.
https://en.wikipedia.org/wiki/Sky_Skipper#Preservation_efforts
USING_C = 1
SHIFTED_BIT_COUNT = 0
BYTE_NUM = -1
MUST_RELOAD_REG = 1
get_rotation_bits ; Load b as well, since we're expecting to always have at least 8 bits of data ready
USING_C = 0
MUST_RELOAD_REG = 1
BYTE_NUM = 0
REPT 16 * 2
get_rotation_bits
xor a
REPT 3
rotate_bit rr
ENDR
ld [hli], a
IF SHIFTED_BIT_COUNT >= 8
BYTE_NUM = BYTE_NUM + 1
SHIFTED_BIT_COUNT = SHIFTED_BIT_COUNT + (-8)
MUST_RELOAD_REG = 1
ENDC
ENDR
ld hl, wShadowOAM + $19
ld a, [hl]
dec a
ld [hld], a
ld b, [hl]
ld l, $15
sub 8
ld [hl], a
ld l, $05
add a, 2 * 8
ld [hld], a
ld [hl], b
ld l, $11
ld a, [hl]
add a, 3
ld [hld], a
ld b, [hl]
ld l, $0D
sub 8
ld [hl], a
ld l, $09
sub 8
ld [hl], a
ld l, 1
sub 8
ld [hld], a
ld [hl], b