<commit_before>
HIGHLIGHT_LENGTH equ 14
	
SECTION "File select", ROMX

FileSelectHighlight::
	ld b, 3
.highlightLoop
	ld c, HIGHLIGHT_LENGTH
	call FillVRAMLite
	ld de, VRAM_ROW_SIZE - HIGHLIGHT_LENGTH
	add hl, de
	dec b
	jr nz, .highlightLoop
	ret
	
FileSelectOptionStrings::
	dstr "MANAGE FILES"
	dstr "COPY FILE..."
	dstr "ERASE FILE..."
	
FileSelectOptions::
	ld a, 1
	ld [wTextboxStatus], a
	ld [rVBK], a
	
	ld hl, $9C00
	ld c, $20
	ld a, $40
	call FillVRAMLite
	ld c, $20
	xor a
	call FillVRAMLite
	
	ld c, 14
	ld a, $42
	call FillVRAMLite
	
	ld a, 1
	ld bc, $186
	call FillVRAM
	
	xor a
	ld [rVBK], a
	
	ld hl, $9C00
	ld c, $20
	ld a, "_"
	call FillVRAMLite
	xor a
	ld c, $21
	call FillVRAMLite
	ld c, 13
	ld a, "_"
	call FillVRAMLite
	xor a
	ld bc, $122
	call FillVRAM
	
	ld hl, FileSelectOptionStrings
	ld de, $9C21
	call CopyStrToVRAM
	ld e, $84
	call CopyStrToVRAM
	ld e, $C4
	call CopyStrToVRAM
	
	call WaitForTextbox ; This will begin to rise the window
	ld hl, wTextboxStatus
	inc [hl] ; Go past the window's normal boundary, which will make it continue rising
	
	; Perform rest of scrolling animation
.scrollingLoop
	rst waitVBlank
	ld a, [hl]<commit_msg>Fix invalid call breaking options screen<commit_after>
HIGHLIGHT_LENGTH equ 14
	
SECTION "File select", ROMX

FileSelectHighlight::
	ld b, 3
.highlightLoop
	ld c, HIGHLIGHT_LENGTH
	call FillVRAMLite
	ld de, VRAM_ROW_SIZE - HIGHLIGHT_LENGTH
	add hl, de
	dec b
	jr nz, .highlightLoop
	ret
	
FileSelectOptionStrings::
	dstr "MANAGE FILES"
	dstr "COPY FILE..."
	dstr "ERASE FILE..."
	
FileSelectOptions::
	ld a, 1
	ld [wTextboxStatus], a
	ld [rVBK], a
	
	ld hl, $9C00
	ld c, $20
	ld a, $40
	call FillVRAMLite
	ld c, $20
	xor a
	call FillVRAMLite
	
	ld c, 14
	ld a, $42
	call FillVRAMLite
	
	ld a, 1
	ld bc, $186
	call FillVRAM
	
	xor a
	ld [rVBK], a
	
	ld hl, $9C00
	ld c, $20
	ld a, "_"
	call FillVRAMLite
	xor a
	ld c, $21
	call FillVRAMLite
	ld c, 13
	ld a, "_"
	call FillVRAMLite
	xor a
	ld bc, $122
	call FillVRAM
	
	ld hl, FileSelectOptionStrings
	ld de, $9C21
	call CopyStrToVRAM
	ld e, $84
	call CopyStrToVRAM
	ld e, $C4
	call CopyStrToVRAM
	
	ld hl, wTextboxStatus
.waitTextboxRose
	rst waitVBlank
	ld a, [hl]
	cp $31
	jr nz, .waitTextboxRose
	inc [hl] ; Go past the window's normal boundary, which will make it continue rising
	
	; Perform rest of scrolling animation
.scrollingLoop
	rst waitVBlank
	ld a, [hl]
{'fraction_non_alphanumeric': 0.0779874213836478, 'fraction_numerical': 0.033542976939203356, 'mean_word_length': 3.3381818181818184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '178769', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1005, 'n_words': 358}