Glitch City Laboratories Archives

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.

Forum Games

Press Ctrl+V or Cmd+V or whatever and post - Page 139

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Zowayix
Date: 2019-02-22 18:24:55
Simplecom NU301

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Sherkel
Date: 2019-02-23 18:25:25
Confusion item activation curiosity

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: ISSOtm
Date: 2019-02-23 18:45:28

; Be careful with effects on consecutive lines!
; A "double" effect will end a handful of cycles too late if the preceding scanline was really busy
; (approx. 25 M-cycles, HBlank can be as short as 22 cycles plus 1~2 cycles of latency explained below)
; The textbox appears to last up to 22 M-cycles so it should be fine
; The LY=LYC interrupt appears to be unable to trigger in the first (first two?) cycles of a scanline, giving extra leeway
; Anyways, using an effect just after either of the previous conditions may slightly delay it, and repeating the condition will accumulate the delays
; Mode 2 being 20 cycles long, it should be possible to stack the delays somewhat before visible breakage happens, but it's better to avoid it at all


SECTION "Raster fx helper functions", ROM0

; Get a pointer to the currently free scanline buffer
; @return a The pointer
; @return c The pointer
; @destroy a c
GetFreeScanlineBuf::
    ldh a, [hWhichScanlineBuffer]
    xor LOW(hScanlineFXBuffer2) ^ LOW(hScanlineFXBuffer1)
    ld c, a
    ret

; Switches to the currently free scanline buffer
; @return c A pointer to the newly freed buffer
; @return b A pointer to the newly used buffer
; @destroy a c
SwitchScanlineBuf::
    call GetFreeScanlineBuf
    ldh [hWhichScanlineBuffer], a
    ld b, a
    xor LOW(hScanlineFXBuffer2) ^ LOW(hScanlineFXBuffer1)
    ld c, a
    ret

; Switches to the currently free scanline buffer, and copies it over to the other buffer
; @destroy a c hl
SwitchAndCopyScanlineBuf::
    call SwitchScanlineBuf
    ld l, b
    ld h, HIGH(hScanlineFXBuffer1)
.loop
    ld a, [hli]
    ld [$ff00+c], a
    inc c
    inc a
    jr nz, .loop
    ret

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Raven Freak
Date: 2019-02-24 11:40:14
0D 04 AF CD 2E 4A AF E0 01 E0

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Zowayix
Date: 2019-02-24 12:58:18
https://twitter.com/catgirls_dbooks/status/1099673148084113409

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: ISSOtm
Date: 2019-02-26 08:01:01
-p 0xFF

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Couldntthinkofaname
Date: 2019-02-26 08:55:05
; Epsilon 26-Feb-19
;*Rev 1.0
; bootcode.asm - probably a bad idea :P
; to be linked agianst main code
; handles some boot routines, such as wiping RAM,VRAM,and OAM
; and loading the mono gb Background and OBJ paletes
; to be %11100100

; also contains defines for memcpy,
; memclear, and loadCGBPallete.

; Sets byte at "_isCGB"
; to be 1 if CGB and zero
; if otherwise

; WARN - Sets stack pointer to $FFFF, and
; does not clear HRAM, even though
; it probably should.

; WARN - When linking, have
; symbol "_isCGB" defined somewhere
; in WRAM or HRAM (as a single byte).

; WARN - Does not define header,
; use RGBFIX.

; NOTE - Does not define any
; RST Vectors or Int
; handlers.

include "hardware.inc" ; hardware defines. uses my rev 2.8 for RAM size defines

section "onBoot",rom0[$100]

onBoot::
di ; Disable Ints
jp _init ; Jump over header

; Fill Header with Zeros
rept $150-$104
db 0
endr
; _init
; purpose - initialization, such as
; clearing RAM,VRAM,and OAM, and loading
; mono gb Background and OBJ pallete
; params void
; doesn't really return, jumps to main
; notes - expects symbol "_isCGB" to be deifned
; somewhere on link. Expects entry
; point to be "main"
_init::
ld sp,$ffff ; Stack is in HRAM
; Fall Through
shutOffScreen::
ld a,[rLY]
cp 144 ; Check if LY is in Vblank Period
jr nz,shutOffScreen ; if not, keep checking
xor a ; a = 0
ld [rLCDC],a ; clear all bits of LCD Control, shut off screen
; Fall Through
wipeRAM::
ld hl,_RAM
ld bc,_RAM_SIZE
call memclear
wipeVRAM::

; memclear
; purpose - clear a buffer of bc size
; to 0x00.
; params:
; hl - ptr to buffer
; bc - sizeof buffer
; returns void
; destroys a,b,c,h,l
memclear::
xor a
ldi [hl],a
dec bc
ld a,b
or c
jr nz,memclear
ret
; memcpy
; purpose - copies memory from buffer @ hl
; to buffer @ de.
; params:
; hl - ptr to buffer to copy from
; de - ptr to buffer to copy to
; bc - sizeof buffer
; returns void
; destroys everything
memcpy::
ldi a,[hl]
ld [de],a
inc de
dec bc
ld a,b
or c
jr nz,memcpy
ret

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: ISSOtm
Date: 2019-02-26 12:19:56
Eww, there are a LOT of things I'd criticize in that code.


https://www.deviantart.com/itzaspace/gallery/

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Couldntthinkofaname
Date: 2019-02-26 13:27:31

Eww, there are a LOT of things I'd criticize in that code.


Ye, I just uploaded what I had done at the time.



https://github.com/gbdev/hardware.inc/pull/2

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Sherkel
Date: 2019-03-01 00:32:47
somethings wrong with my knee. it's like my brain is facing my penis in a chess match. it feels like something is off or dislocated or something. it just started tonight. eaelir today i tried to crack it (this morning actually) by doing that thing where i bend the knee off to the inner direction to the side without aso moving the leg, so it would crack, but i coiuldnt get it to work and maybe i overdid it and then later in the night it felt like it wouldnt move the same way and its like theres something blocking it now. idk what to do. fuck me

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Zowayix
Date: 2019-03-01 00:53:56
emulator_text_box_with_label.Add(emulator_label, 0, wx.ALL, 5)
emulator_text_box_with_label.Add(emulator_text_box, 1, wx.ALL, 5)
emulator_editor.Add(emulator_text_box_with_label, 0, wx.ALL | wx.EXPAND, 5)

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Parzival
Date: 2019-03-01 01:59:59
t!rank

somethings wrong with my knee. it's like my brain is facing my penis in a chess match. it feels like something is off or dislocated or something. it just started tonight. eaelir today i tried to crack it (this morning actually) by doing that thing where i bend the knee off to the inner direction to the side without aso moving the leg, so it would crack, but i coiuldnt get it to work and maybe i overdid it and then later in the night it felt like it wouldnt move the same way and its like theres something blocking it now. idk what to do. f**k me
go see a doctor

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: ISSOtm
Date: 2019-03-01 06:15:58

    db 5
    db -29, -12, 0, 0
    db -29, -4, 2, 0
    db -29, 4, 4, 0
    db -13, -8, 6, 0
    db -13, 0, 8, 0


Context: sprite offsets describing one of the player's animation frames.

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Sherkel
Date: 2019-03-01 11:39:11
GB Programming

(@Parzi, that wasn't from me, but yes, it sounds like he should. Not the first time he's had joint problems either.)

Re: Press Ctrl+V or Cmd+V or whatever and post

Posted by: Zowayix
Date: 2019-03-01 22:09:19
self.systemsList.AppendColumn('Emulators')