<commit_before>; graphic card auto-configuration firmware module
; suitable for Tampico and perhaps Acapulco computers
; (c) 2020 <NAME>
; last modified 20200505-0926

; first of all, preconfigure CRTC to desired first mode
; *** TO DO **

; clear the screen
	LDX #$60		; Tampico & Acapulco screen takes $6000-$7FFF in line-doubled mode
	LDY #0			; will reset index too
	TYA				; clear value
	STX z_pt+1		; set zeropage pointer
	STY z_pt
vs_cls:
		STA (z_pt), Y	; clear screen byte
		INY				; go for next byte in page
		BNE vs_cls
			INC z_pt+1		; next page
		BPL vs_cls		; fortunately, it's until the last "positive" address!
		<commit_msg>thinking about corner positions on VGA autoconfig<commit_after>; graphic card auto-configuration firmware module
; suitable for Tampico and perhaps Acapulco computers
; (c) 2020 <NAME>
; last modified 20200505-0926

; first of all, preconfigure CRTC to desired first mode
; *** TO DO **

; clear the screen
	LDX #$60		; Tampico & Acapulco screen takes $6000-$7FFF in line-doubled mode
	LDY #0			; will reset index too
	TYA				; clear value
	STX z_pt+1		; set zeropage pointer
	STY z_pt
vs_cls:
		STA (z_pt), Y	; clear screen byte
		INY				; go for next byte in page
		BNE vs_cls
			INC z_pt+1		; next page
		BPL vs_cls		; fortunately, it's until the last "positive" address!
; *******************************************************************************
; *** now let's place some patterns at the corners of every screen resolution ***
; *******************************************************************************
; 170 for left side, 85 for the right (via LSR/ASL)
; $6000 is upper left on ALL modes
; add 31, 35 or 39 for upper right ($601F, $6023 & $6027)
; bottom is much more difficult... base scanline offset is 7168 (7 Ki) or $8C00
; but must add (rows-1)*cols for the left, adding (cols-1) for the right

	LDA #%10101010	; leftmost pattern
	STA $6000		; upper left is always the same address
					; store at bottom left places
	LSR				; makes %01010101 for rightmost pattern
	STA $601F		; store at upper right positions
	STA $6023
	STA $6027
					; store at bottom right places
	
{'fraction_non_alphanumeric': 0.14566744730679157, 'fraction_numerical': 0.05573770491803279, 'mean_word_length': 3.8435374149659864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2104587', 'n_tokens_mistral': 823, 'n_tokens_neox': 681, 'n_words': 288}