Skip to content

Commit

Permalink
Added GPLv3 notices to every file. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
avalonbits authored Nov 13, 2023
1 parent 477655a commit 2c59eda
Show file tree
Hide file tree
Showing 18 changed files with 326 additions and 6 deletions.
16 changes: 16 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Copyright (C) 2023 Igor Cananea <[email protected]>
# Author: Igor Cananea <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

# ----------------------------
# Makefile Options
# ----------------------------
Expand Down
28 changes: 22 additions & 6 deletions old/aed.s
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
; Copyright (C) 2023 Igor Cananea <[email protected]>
; Author: Igor Cananea <[email protected]>
;
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program. If not, see <http://www.gnu.org/licenses/>.

.assume ADL = 1
.org $A0000

Expand Down Expand Up @@ -384,7 +400,7 @@ _s_scur:
; Now print the cursor.
rst.lil 10h


; First reverse fg/bg.
; Because printing the cursor moves it on vdp, we need to bring it
; back.
Expand Down Expand Up @@ -449,7 +465,7 @@ _s_putc:
ld a, (_s_curx)
inc a
ld (_s_curx), a

; Increment eos if we haven't filled the line.
ld a, (_s_maxw)
ld b, a
Expand Down Expand Up @@ -486,7 +502,7 @@ _s_pview:
; - Cursor at EOL:
; * Shift everyone to the left to create a space. No tail work.
; - Cursor somewhere in line:
; * Move everyone after the cursor to the right, removing char if
; * Move everyone after the cursor to the right, removing char if
; needed.

; So first, let's figure out where we are.
Expand Down Expand Up @@ -596,7 +612,7 @@ _s_pview:
; Move the cursor back to _s_curx,_s_cury
call _s_cback


@done:
pop hl
pop bc
Expand All @@ -617,7 +633,7 @@ _s_bkspace:

; Remove cursor from screen
call _replace_cur

; Move cursor to the left.
dec a
ld (_s_curx), a
Expand Down Expand Up @@ -819,7 +835,7 @@ tb_putc:
; We can't store if there is no more space. For now, just return.
jr Z, @done


; First we add the char to the text buffer.
ld de, (_ccur)
ld (de), a
Expand Down
18 changes: 18 additions & 0 deletions src/char_buffer.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "char_buffer.h"

#include <stdlib.h>
Expand Down
18 changes: 18 additions & 0 deletions src/char_buffer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _CHAR_BUFFER_H_
#define _CHAR_BUFFER_H_

Expand Down
18 changes: 18 additions & 0 deletions src/cmd_ops.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "cmd_ops.h"

#include <agon/vdp_vdu.h>
Expand Down
18 changes: 18 additions & 0 deletions src/cmd_ops.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _CMD_OPS_H_
#define _CMD_OPS_H_

Expand Down
18 changes: 18 additions & 0 deletions src/conv.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "conv.h"

#include <stdbool.h>
Expand Down
18 changes: 18 additions & 0 deletions src/conv.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _CONV_H_
#define _CONV_H_

Expand Down
18 changes: 18 additions & 0 deletions src/editor.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "editor.h"

#include <agon/vdp_vdu.h>
Expand Down
18 changes: 18 additions & 0 deletions src/editor.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EDITOR_H_
#define _EDITOR_H_

Expand Down
18 changes: 18 additions & 0 deletions src/line_buffer.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "line_buffer.h"

#include <stdlib.h>
Expand Down
18 changes: 18 additions & 0 deletions src/line_buffer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _LINE_BUFFER_H_
#define _LINE_BUFFER_H_

Expand Down
18 changes: 18 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "editor.h"
#include "editor.h"
#include "screen.h"
Expand Down
18 changes: 18 additions & 0 deletions src/screen.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "screen.h"

#include <agon/vdp_vdu.h>
Expand Down
18 changes: 18 additions & 0 deletions src/screen.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Copyright (C) 2023 Igor Cananea <[email protected]>
* Author: Igor Cananea <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _SCREEN_H_
#define _SCREEN_H_

Expand Down
Loading

0 comments on commit 2c59eda

Please sign in to comment.