mirror of
https://github.com/irmen/prog8.git
synced 2025-08-15 14:27:37 +00:00
text editor configs
This commit is contained in:
22
compiler/res/.editorconfig
Normal file
22
compiler/res/.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 120
|
||||||
|
tab_width = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
ij_smart_tabs = true
|
||||||
|
|
||||||
|
[*.p8]
|
||||||
|
tab_width = 4
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.asm]
|
||||||
|
tab_width = 8
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
@@ -1,8 +1,6 @@
|
|||||||
; Prog8 definitions for number conversions routines.
|
; Number conversions routines.
|
||||||
;
|
;
|
||||||
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
;
|
|
||||||
; indent format: TABS, size=8
|
|
||||||
|
|
||||||
|
|
||||||
conv {
|
conv {
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
; routine to draw the Commander X16's log in petscii.
|
||||||
|
|
||||||
%import textio
|
%import textio
|
||||||
|
|
||||||
cx16logo {
|
cx16logo {
|
||||||
|
@@ -1,8 +1,10 @@
|
|||||||
|
; C64 and Cx16 disk drive I/O routines.
|
||||||
|
;
|
||||||
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
|
|
||||||
%import textio
|
%import textio
|
||||||
%import syslib
|
%import syslib
|
||||||
|
|
||||||
; Note: this code is compatible with C64 and CX16.
|
|
||||||
|
|
||||||
diskio {
|
diskio {
|
||||||
|
|
||||||
sub directory(ubyte drivenumber) -> ubyte {
|
sub directory(ubyte drivenumber) -> ubyte {
|
||||||
|
@@ -1,11 +1,8 @@
|
|||||||
; Prog8 internal Math library routines - always included by the compiler
|
; Internal Math library routines - always included by the compiler
|
||||||
; Generic machine independent 6502 code.
|
; Generic machine independent 6502 code.
|
||||||
;
|
;
|
||||||
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
;
|
;
|
||||||
; indent format: TABS, size=8
|
|
||||||
|
|
||||||
|
|
||||||
; some more interesting routines can be found here:
|
; some more interesting routines can be found here:
|
||||||
; http://6502org.wikidot.com/software-math
|
; http://6502org.wikidot.com/software-math
|
||||||
; http://codebase64.org/doku.php?id=base:6502_6510_maths
|
; http://codebase64.org/doku.php?id=base:6502_6510_maths
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
; Prog8 internal Math library routines - always included by the compiler
|
; Internal Math library routines - always included by the compiler
|
||||||
;
|
;
|
||||||
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
;
|
|
||||||
; indent format: TABS, size=8
|
|
||||||
|
|
||||||
math {
|
math {
|
||||||
%asminclude "library:math.asm", ""
|
%asminclude "library:math.asm", ""
|
||||||
|
@@ -1,9 +1,7 @@
|
|||||||
; Prog8 internal library routines - always included by the compiler
|
; Internal library routines - always included by the compiler
|
||||||
; Generic machine independent 6502 code.
|
; Generic machine independent 6502 code.
|
||||||
;
|
;
|
||||||
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
;
|
|
||||||
; indent format: TABS, size=8
|
|
||||||
|
|
||||||
|
|
||||||
read_byte_from_address_on_stack .proc
|
read_byte_from_address_on_stack .proc
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
; Prog8 internal library routines - always included by the compiler
|
; Internal library routines - always included by the compiler
|
||||||
;
|
;
|
||||||
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
;
|
|
||||||
; indent format: TABS, size=8
|
|
||||||
|
|
||||||
prog8_lib {
|
prog8_lib {
|
||||||
%asminclude "library:prog8_lib.asm", ""
|
%asminclude "library:prog8_lib.asm", ""
|
||||||
|
9
compiler/res/prog8lib/string.p8
Normal file
9
compiler/res/prog8lib/string.p8
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
; 0-terminated string manipulation routines.
|
||||||
|
;
|
||||||
|
; Written by Irmen de Jong (irmen@razorvine.net) - license: GNU GPL 3.0
|
||||||
|
|
||||||
|
|
||||||
|
string {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@@ -1,3 +1,5 @@
|
|||||||
|
; utility debug code to print the X (evalstack) and SP (cpu stack) registers.
|
||||||
|
|
||||||
%import textio
|
%import textio
|
||||||
|
|
||||||
test_stack {
|
test_stack {
|
||||||
|
22
examples/.editorconfig
Normal file
22
examples/.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = true
|
||||||
|
max_line_length = 120
|
||||||
|
tab_width = 4
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
ij_smart_tabs = true
|
||||||
|
|
||||||
|
[*.p8]
|
||||||
|
tab_width = 4
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.asm]
|
||||||
|
tab_width = 8
|
||||||
|
indent_size = 8
|
||||||
|
indent_style = tab
|
Reference in New Issue
Block a user