<commit_before>;Initial settings for screen
.MACRO SNES_INIDISP ARGS arg
	lda #arg
	sta $2100
.ENDM

;OBJECT SIZE & OBJECT DATA AREA DESIGNATION
.MACRO SNES_OBJSEL ARGS arg
	lda #arg
	sta $2101
.ENDM

;ADDRESS FOR ACCESSING OAM (OBJECT ATTRIBUTE MEMORY)
.MACRO SNES_OAMADD ARGS arg
	ldy #arg
	sty $2102
.ENDM

;DATA FOR OAM WRITE
.MACRO SNES_OAMDATA ARGS arg
	lda #arg
	sta $2104
.ENDM

;BG MODE & CHARACTER SIZE SETTINGS
.MACRO SNES_BGMODE ARGS arg
	lda #arg
	sta $2105
.ENDM


;SIZE & SCREEN DESIGNATION FOR MOSAIC DISPLAY
.MACRO SNES_MOSAIC ARGS arg
	lda #arg
	sta $2106
.ENDM

;ADDRESS FOR STORING SC-DATA OF EACH BG & SC SIZE DESIGNATION
.MACRO SNES_BG1SC ARGS arg
	lda #arg
	sta $2107
.ENDM

.MACRO SNES_BG2SC ARGS arg
	lda #arg
	sta $2108
.ENDM

.MACRO SNES_BG3SC ARGS arg
	lda #arg
	sta $2109
.ENDM

.MACRO SNES_BG4SC ARGS arg
	lda #arg
	sta $210A
.ENDM

;BG CHARACTER DATA AREA DESTINATION
.MACRO SNES_BGNBA ARGS arg1,arg2
	lda #arg1
	sta $210B
	
	lda #arg2
	sta $210C
.ENDM

.MACRO SNES_BG12NBA ARGS arg
	lda #arg
	sta $210B
.ENDM

.MACRO SNES_BG34NBA ARGS arg
	lda #arg
	sta $210C
.ENDM

;H/V SCROLL VALUE DESIGNATION FOR BG-1,2,3,4
.MACRO SNES_BG1H0FS ARGS arg
	lda #arg
	sta $210D
.ENDM

.MACRO SNES_BG1V0FS ARGS arg
	lda #arg
	sta $210E
.ENDM

.MACRO SNES_BG2H0FS ARGS arg
	lda #arg
	sta $210F
.ENDM

.MACRO SNES_BG2V0FS ARGS arg
	lda #arg
	sta $2110
.ENDM

.MACRO SNES_BG3H0FS ARGS arg
	lda #arg
	sta $2111
.ENDM

.MACRO SNES_BG3V0FS ARGS arg
	lda #arg
	sta $2112
.ENDM

.MACRO SNES_BG4H0FS ARGS arg
	lda #arg
	sta $2113
.ENDM

.MACRO SNES_BG4V0FS ARGS arg
	lda #arg
	sta $2114
.ENDM

;VRAM ADRESS INCREMENT VALUE DESIGNATION
.MACRO SNES_VMAINC ARGS arg
	lda #arg
	sta $2115
.ENDM

;VRAM ADRESS INCREMENT VALUE DESIGNATION
.MACRO SNES_VMADD ARGS arg
	ldy #arg
	sty $2116
.ENDM

;DATA FOR VRAM WRITE
.MACRO SNES_VMDATA
	ldy #\1
	sty $2118
.ENDM

;INITIAL SETTING IN SCREEN MODE-7
.MACRO SNES_M7SEL ARGS arg
	lda #arg
	sta $211A
.ENDM

;ROTATION/ENLARGEMENT/REDUCTION/ IN MODE-7 , CENTER COORDINATE
;SETTINGS & MULTIPLICAND/MULTIPLIER SETTINGS OF COMPLEMENTARY
;MULTIPLICATION

.MACRO SNES_M7
	lda #\1&$FF
	sta $211B
	lda #\1/$100
	sta $211B
	
	lda #\2&$FF
	sta $211BC
	lda #\2/$100
	sta $211C
	
	lda #\3&$FF
	sta $211D
	lda #\3/$100
	sta $211D
	
	lda #\4&$FF
	sta $211E
	lda #\4/$100
	sta $211E
	
	lda #\5&$FF
	sta $211F
	lda #\5/$100
	sta $211F
	
	lda #\6&$FF
	sta $2120
	lda #\6/$100
	sta $2120
.ENDM

;ADDRES FOR CG-RAM READ AND WRITE
.MACRO SNES_CGADD ARGS arg
	lda #arg
	sta $2121
.ENDM

;DATA FOR CG-RAM WRITE<commit_msg>correct an error in a macro<commit_after>;Initial settings for screen
.MACRO SNES_INIDISP ARGS arg
	lda #arg
	sta $2100
.ENDM

;OBJECT SIZE & OBJECT DATA AREA DESIGNATION
.MACRO SNES_OBJSEL ARGS arg
	lda #arg
	sta $2101
.ENDM

;ADDRESS FOR ACCESSING OAM (OBJECT ATTRIBUTE MEMORY)
.MACRO SNES_OAMADD ARGS arg
	ldy #arg
	sty $2102
.ENDM

;DATA FOR OAM WRITE
.MACRO SNES_OAMDATA ARGS arg
	lda #arg
	sta $2104
.ENDM

;BG MODE & CHARACTER SIZE SETTINGS
.MACRO SNES_BGMODE ARGS arg
	lda #arg
	sta $2105
.ENDM


;SIZE & SCREEN DESIGNATION FOR MOSAIC DISPLAY
.MACRO SNES_MOSAIC ARGS arg
	lda #arg
	sta $2106
.ENDM

;ADDRESS FOR STORING SC-DATA OF EACH BG & SC SIZE DESIGNATION
.MACRO SNES_BG1SC ARGS arg
	lda #arg
	sta $2107
.ENDM

.MACRO SNES_BG2SC ARGS arg
	lda #arg
	sta $2108
.ENDM

.MACRO SNES_BG3SC ARGS arg
	lda #arg
	sta $2109
.ENDM

.MACRO SNES_BG4SC ARGS arg
	lda #arg
	sta $210A
.ENDM

;BG CHARACTER DATA AREA DESTINATION
.MACRO SNES_BGNBA ARGS arg1,arg2
	lda #arg1
	sta $210B
	
	lda #arg2
	sta $210C
.ENDM

.MACRO SNES_BG12NBA ARGS arg
	lda #arg
	sta $210B
.ENDM

.MACRO SNES_BG34NBA ARGS arg
	lda #arg
	sta $210C
.ENDM

;H/V SCROLL VALUE DESIGNATION FOR BG-1,2,3,4
.MACRO SNES_BG1H0FS ARGS arg
	lda #arg
	sta $210D
.ENDM

.MACRO SNES_BG1V0FS ARGS arg
	lda #arg
	sta $210E
.ENDM

.MACRO SNES_BG2H0FS ARGS arg
	lda #arg
	sta $210F
.ENDM

.MACRO SNES_BG2V0FS ARGS arg
	lda #arg
	sta $2110
.ENDM

.MACRO SNES_BG3H0FS ARGS arg
	lda #arg
	sta $2111
.ENDM

.MACRO SNES_BG3V0FS ARGS arg
	lda #arg
	sta $2112
.ENDM

.MACRO SNES_BG4H0FS ARGS arg
	lda #arg
	sta $2113
.ENDM

.MACRO SNES_BG4V0FS ARGS arg
	lda #arg
	sta $2114
.ENDM

;VRAM ADRESS INCREMENT VALUE DESIGNATION
.MACRO SNES_VMAINC ARGS arg
	lda #arg
	sta $2115
.ENDM

;VRAM ADRESS INCREMENT VALUE DESIGNATION
.MACRO SNES_VMADD ARGS arg
	ldy #arg
	sty $2116
.ENDM

;DATA FOR VRAM WRITE
.MACRO SNES_VMDATA
	ldy #\1
	sty $2118
.ENDM

;INITIAL SETTING IN SCREEN MODE-7
.MACRO SNES_M7SEL ARGS arg
	lda #arg
	sta $211A
.ENDM

;ROTATION/ENLARGEMENT/REDUCTION/ IN MODE-7 , CENTER COORDINATE
;SETTINGS & MULTIPLICAND/MULTIPLIER SETTINGS OF COMPLEMENTARY
;MULTIPLICATION

.MACRO SNES_M7
	lda #\1&$FF
	sta $211B
	lda #\1/$100
	sta $211B
	
	lda #\2&$FF
	sta $211C
	lda #\2/$100
	sta $211C
	
	lda #\3&$FF
	sta $211D
	lda #\3/$100
	sta $211D
	
	lda #\4&$FF
	sta $211E
	lda #\4/$100
	sta $211E
	
	lda #\5&$FF
	sta $211F
	lda #\5/$100
	sta $211F
	
	lda #\6&$FF
	sta $2120
	lda #\6/$100
	sta $2120
.ENDM

;ADDRES FOR CG-RAM READ AND WRITE
.MACRO SNES_CGADD ARGS arg
	lda #arg
	sta $2121
.ENDM

;DATA FOR CG-RAM WRITE
{'fraction_non_alphanumeric': 0.08361138370951914, 'fraction_numerical': 0.08007850834151128, 'mean_word_length': 3.311336717428088, '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': '1575922', 'n_tokens_mistral': 2802, 'n_tokens_neox': 2547, 'n_words': 764}