<commit_before>; minimal nanoBoot firmware
; (c) 2018-2019 <NAME>
; last modified 20190112-1703

#define	NMOS	_NMOS
#define	SAFE	_SAFE
#define	TIMEBOOT	_TIMEBOOT
;#define	SETOVER	_SETOVER

#include "../../OS/macros.h"
#include "nanoboot.h"

; mimimal firmware variables?
* = $0200

fw_isr	.word	0
fw_nmi	.word	0

; *** ROM contents *** 256 bytes will suffice
* = $FF00

.text

; standard 6502 init... NOT NEEDED
; * no adds or subtractions, thus decimal mode irrelevant
; * stack can be anywhere into page 1

reset:
#ifdef	SETOVER
nb_irq:
#endif
;	CLD
;	LDX #$FF
;	TXS

; ...followed by code chunks
#include "init.s"
#ifndef	SETOVER
#include "nmi.s"
#include "isr.s"
#else
#include "so_nmi.s"
#endif

; vectored interrupt handlers
nmi:
	JMP (fw_nmi)
irq:
	JMP (fw_isr)

; *****************************
; *** standard 6502 vectors ***
; *****************************
* = $FFFA
	.word	nmi
	.word	reset
	.word	irq<commit_msg>ROM-ready nanoboot<commit_after>; minimal nanoBoot firmware
; v0.2a3
; (c) 2018-2019 <NAME>
; last modified 20190220-1042

#define	NMOS	_NMOS
#define	SAFE	_SAFE
#define	TIMEBOOT	_TIMEBOOT
;#define	SETOVER	_SETOVER

#include "../../OS/macros.h"
#include "nanoboot.h"

; mimimal firmware variables?
* = $0200

fw_isr	.word	0
fw_nmi	.word	0

; *** ROM contents *** 256 bytes will suffice
* = $FF00

.text

; standard 6502 init... NOT NEEDED
; * no adds or subtractions, thus decimal mode irrelevant
; * stack can be anywhere into page 1

reset:
#ifdef	SETOVER
nb_irq:
#endif
;	CLD
;	LDX #$FF
;	TXS

; ...followed by code chunks
#include "init.s"
#ifndef	SETOVER
#include "nmi.s"
#include "isr.s"
#else
#include "so_nmi.s"
#endif

; vectored interrupt handlers
nmi:
	JMP (fw_nmi)
irq:
	JMP (fw_isr)

; *** filling for ROM-ready files ***
	.dsb	$FFFA-*, $FF

; *****************************
; *** standard 6502 vectors ***
; *****************************
* = $FFFA
	.word	nmi
	.word	reset
	.word	irq
{'fraction_non_alphanumeric': 0.1873695198329854, 'fraction_numerical': 0.043319415448851775, 'mean_word_length': 4.058047493403694, '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': '5407492', 'n_tokens_mistral': 847, 'n_tokens_neox': 763, 'n_words': 224}