]> git.sur5r.net Git - c128-kasse/log
c128-kasse
6 years agokasse: Add comment why we disable IRQs mxf/umlauts
Maik Fischer [Sun, 15 Oct 2017 22:26:47 +0000 (00:26 +0200)]
kasse: Add comment why we disable IRQs

6 years agocredit_manager: replace [aou]e with [aou]UML in string literals
Maik Fischer [Sun, 15 Oct 2017 22:16:59 +0000 (00:16 +0200)]
credit_manager: replace [aou]e with [aou]UML in string literals

6 years agovdc: write 16bit addresses just like KERNAL does
Maik Fischer [Sun, 15 Oct 2017 21:25:34 +0000 (23:25 +0200)]
vdc: write 16bit addresses just like KERNAL does

I read somewhere on the internet that the order of writing the high and low
address bytes actually matter. So we do it just like the KERNAL does:
First write the high address, then the low one:

https://web.archive.org/web/20080202025255/singularcrew.hu/c128rom/C128_ROM_commented.html#$CE0C

6 years agopatch charset to include umlauts
Maik Fischer [Thu, 5 Oct 2017 22:50:00 +0000 (00:50 +0200)]
patch charset to include umlauts

6 years agoRun “make format”
Michael Stapelberg [Fri, 6 Oct 2017 05:46:27 +0000 (07:46 +0200)]
Run “make format”

6 years agotravis: check formatting
Michael Stapelberg [Fri, 6 Oct 2017 05:42:56 +0000 (07:42 +0200)]
travis: check formatting

6 years agoMerge pull request #13 from sur5r/format_euro
Maik Fischer [Thu, 5 Oct 2017 23:06:28 +0000 (01:06 +0200)]
Merge pull request #13 from sur5r/format_euro

Rework format_euro()

6 years agoRework format_euro()
Jakob Haufe [Thu, 5 Oct 2017 22:47:34 +0000 (00:47 +0200)]
Rework format_euro()

Should have been this way from the start. As of today, it's unclear
whether there has been a real bug in the library back then of just a
confusion between %02d and %0.2d.

An simple benchmark of 1000 iterations resulted in approximately
25% speedup at 1MHz and 12.5% speedup at 2MHz.

6 years agoMerge pull request #12 from stapelberg/builddir
Michael Stapelberg [Thu, 5 Oct 2017 08:11:55 +0000 (01:11 -0700)]
Merge pull request #12 from stapelberg/builddir

Makefile: place *.{o,s} in build/

6 years agoAdd cat, *.lbl to .gitignore stapelberg/builddir
Michael Stapelberg [Wed, 4 Oct 2017 16:24:30 +0000 (18:24 +0200)]
Add cat, *.lbl to .gitignore

6 years agoinclude cat in “all”, clean up label files
Michael Stapelberg [Wed, 4 Oct 2017 16:23:54 +0000 (18:23 +0200)]
include cat in “all”, clean up label files

6 years agoGenerate label files for VICE’s monitor
Michael Stapelberg [Wed, 4 Oct 2017 16:22:33 +0000 (18:22 +0200)]
Generate label files for VICE’s monitor

6 years agoCompile with -g
Michael Stapelberg [Wed, 4 Oct 2017 16:22:29 +0000 (18:22 +0200)]
Compile with -g

6 years agoMakefile: place *.{o,s} in build/
Michael Stapelberg [Mon, 2 Oct 2017 20:01:58 +0000 (22:01 +0200)]
Makefile: place *.{o,s} in build/

6 years agoMerge pull request #11 from 9b17fe/remove-dual-monitor stapelberg/master
Michael Stapelberg [Thu, 28 Sep 2017 15:38:19 +0000 (08:38 -0700)]
Merge pull request #11 from 9b17fe/remove-dual-monitor

Remove unused "dual monitor" code; clock CPU faster

6 years agouse correct constant to switch videomode mxf/remove-dual-monitor
Maik Fischer [Tue, 26 Sep 2017 08:13:39 +0000 (10:13 +0200)]
use correct constant to switch videomode

6 years agoitemz: fix depreciation warnings, make it fast()
Maik Fischer [Mon, 25 Sep 2017 10:37:45 +0000 (12:37 +0200)]
itemz: fix depreciation warnings, make it fast()

6 years agoRemove unused "dual monitor" code; clock CPU faster
Maik Fischer [Sun, 24 Sep 2017 17:42:37 +0000 (19:42 +0200)]
Remove unused "dual monitor" code; clock CPU faster

We never used the C64/VIC-II monitor at events because we didn't have the space.
A nice side effect is we only need to call fast() once to double the CPU
frequency, which should speed up numeric computations.

6 years agoFormat code using clang-format-3.9 (“make format”) mxf/master
Michael Stapelberg [Sun, 24 Sep 2017 14:11:33 +0000 (16:11 +0200)]
Format code using clang-format-3.9 (“make format”)

6 years agoinclude peekpoke.h instead of re-defining the macros
Michael Stapelberg [Sun, 24 Sep 2017 14:12:19 +0000 (16:12 +0200)]
include peekpoke.h instead of re-defining the macros

This is a prerequisite for the next step.

6 years agono-op: remove unused variable
Michael Stapelberg [Sun, 24 Sep 2017 14:06:22 +0000 (16:06 +0200)]
no-op: remove unused variable

6 years agoAdd README.md
Michael Stapelberg [Sun, 24 Sep 2017 13:56:40 +0000 (15:56 +0200)]
Add README.md

6 years agoChange drawing chars (#9)
Maik Fischer [Sun, 24 Sep 2017 12:55:21 +0000 (14:55 +0200)]
Change drawing chars (#9)

fixes nnev/c128-kasse#8

I'm not entirely sure why this worked, I choose higher value
chars from https://en.wikipedia.org/wiki/PETSCII#Character_set

7 years agoImplement space completion when selling items.
Michael Stapelberg [Sat, 5 Nov 2016 13:41:21 +0000 (14:41 +0100)]
Implement space completion when selling items.

fixes #5

7 years agoFix handling of maybe-absent files
Jakob Haufe [Sat, 5 Nov 2016 13:11:02 +0000 (14:11 +0100)]
Fix handling of maybe-absent files

"state" and "items" might not exist, so fail gracefully when creating
the disk image.

7 years agoCreate disk images from scratch
Jakob Haufe [Sat, 5 Nov 2016 13:03:59 +0000 (14:03 +0100)]
Create disk images from scratch

c1541 can create empty images, no need to have them in git.
This also makes image creation more reproducible.

7 years agoMake dist-clean resilient against absent files
Jakob Haufe [Sat, 5 Nov 2016 12:54:12 +0000 (13:54 +0100)]
Make dist-clean resilient against absent files

7 years agocalculate income when loading state file
Michael Stapelberg [Sat, 5 Nov 2016 10:46:36 +0000 (11:46 +0100)]
calculate income when loading state file

fixes #2

7 years agoenforce nickname character limit in credit manager
Michael Stapelberg [Thu, 3 Nov 2016 08:57:51 +0000 (09:57 +0100)]
enforce nickname character limit in credit manager

fixes #1

7 years agofix prototypes
Michael Stapelberg [Thu, 3 Nov 2016 08:55:46 +0000 (09:55 +0100)]
fix prototypes

…to fix the build with cc65 2.15.0.git.1474623290.bc94d53

The deposit_credit prototype was lacking the char *input parameter.
All other prototypes needed an explicit “void” to signal that they are
not taking any parameters.

10 years agoitemz: implement counter reset rgb2rv12
Michael Stapelberg [Wed, 9 Oct 2013 18:01:35 +0000 (20:01 +0200)]
itemz: implement counter reset

11 years agoIgnore "items" and "tags" as well rgb2rv10
Jakob Haufe [Tue, 6 Nov 2012 00:01:51 +0000 (01:01 +0100)]
Ignore "items" and "tags" as well

11 years agoRestructure Makefile and create include/version.h
Jakob Haufe [Tue, 6 Nov 2012 00:01:42 +0000 (01:01 +0100)]
Restructure Makefile and create include/version.h

Introduce include/version.h to contain the current version string. This
removes the need to use /dev/std{in,out} in the Makefile and will create
more useful error messages.

11 years agoziffer-handling: backspace-support, range check, nur ziffern rgb2rv9
Michael Stapelberg [Thu, 1 Nov 2012 15:37:32 +0000 (16:37 +0100)]
ziffer-handling: backspace-support, range check, nur ziffern

11 years agolog to memory
Michael Stapelberg [Sun, 30 Sep 2012 10:51:13 +0000 (12:51 +0200)]
log to memory

11 years agocat.c: correctly prefix 0 for every single hex (!) digit
Michael Stapelberg [Sun, 30 Sep 2012 09:09:11 +0000 (11:09 +0200)]
cat.c: correctly prefix 0 for every single hex (!) digit

11 years agomake cat.c compile again
Michael Stapelberg [Sun, 30 Sep 2012 09:09:04 +0000 (11:09 +0200)]
make cat.c compile again

11 years agofix off-by-one in item display
Michael Stapelberg [Sat, 29 Sep 2012 17:37:30 +0000 (19:37 +0200)]
fix off-by-one in item display

11 years agouse colors for a good/bad sale
Michael Stapelberg [Sat, 29 Sep 2012 16:51:58 +0000 (18:51 +0200)]
use colors for a good/bad sale

11 years agoimplement colors, remove printing toggle
Michael Stapelberg [Sat, 29 Sep 2012 16:46:34 +0000 (18:46 +0200)]
implement colors, remove printing toggle

11 years agocolors were off-by-one
Michael Stapelberg [Sat, 29 Sep 2012 16:46:17 +0000 (18:46 +0200)]
colors were off-by-one

11 years agoadd color code definitions
Michael Stapelberg [Sat, 29 Sep 2012 15:40:21 +0000 (17:40 +0200)]
add color code definitions

11 years agoinclude time in paper trail when adding a new credit
Michael Stapelberg [Sat, 29 Sep 2012 15:30:39 +0000 (17:30 +0200)]
include time in paper trail when adding a new credit

11 years agoshow remaining credits when user has not enough credits
Michael Stapelberg [Sat, 29 Sep 2012 15:27:52 +0000 (17:27 +0200)]
show remaining credits when user has not enough credits

11 years agoFix wrong print statement
Michael Stapelberg [Sat, 29 Sep 2012 15:25:17 +0000 (17:25 +0200)]
Fix wrong print statement

11 years agoimplement depositing when the user cannot purchase an item
Michael Stapelberg [Sat, 29 Sep 2012 15:10:48 +0000 (17:10 +0200)]
implement depositing when the user cannot purchase an item

11 years agoright-align price in header
Michael Stapelberg [Sat, 29 Sep 2012 15:03:17 +0000 (17:03 +0200)]
right-align price in header

11 years agoactually increment transaction id
Michael Stapelberg [Sat, 29 Sep 2012 15:02:43 +0000 (17:02 +0200)]
actually increment transaction id

11 years agoheader gefixed
Michael Stapelberg [Sat, 29 Sep 2012 14:59:07 +0000 (16:59 +0200)]
header gefixed

11 years agocredit_manager: use the proper header
Michael Stapelberg [Sat, 29 Sep 2012 14:51:26 +0000 (16:51 +0200)]
credit_manager: use the proper header

11 years agofix sprintf format
Michael Stapelberg [Sat, 29 Sep 2012 14:42:20 +0000 (16:42 +0200)]
fix sprintf format

11 years agouse consistent header line length
Michael Stapelberg [Sat, 29 Sep 2012 14:25:11 +0000 (16:25 +0200)]
use consistent header line length

11 years agoprint_buffer needs to be larger when we print 80 characters
Michael Stapelberg [Sat, 29 Sep 2012 14:24:48 +0000 (16:24 +0200)]
print_buffer needs to be larger when we print 80 characters

11 years agoalign papertrail format
Michael Stapelberg [Sat, 29 Sep 2012 14:16:50 +0000 (16:16 +0200)]
align papertrail format

11 years agomakefile: use 'all' target by default
Michael Stapelberg [Sat, 29 Sep 2012 13:38:53 +0000 (15:38 +0200)]
makefile: use 'all' target by default

11 years agobackspace handling: do nothing when at the left-most position
Michael Stapelberg [Sat, 29 Sep 2012 11:45:54 +0000 (13:45 +0200)]
backspace handling: do nothing when at the left-most position

11 years agobackspace in get_input(): write \0-bytes
Michael Stapelberg [Sat, 29 Sep 2012 11:43:20 +0000 (13:43 +0200)]
backspace in get_input(): write \0-bytes

13 years agoreplace getchar() with cgetc() in more places, implement backspace support, beautify...
Michael Stapelberg [Mon, 1 Nov 2010 18:26:31 +0000 (19:26 +0100)]
replace getchar() with cgetc() in more places, implement backspace support, beautify output

13 years agouse nice drawing characters and two-column layout
Michael Stapelberg [Mon, 1 Nov 2010 17:48:37 +0000 (18:48 +0100)]
use nice drawing characters and two-column layout

13 years agouse cgetc() and cputc() instead of getchar()
Michael Stapelberg [Mon, 1 Nov 2010 17:48:10 +0000 (18:48 +0100)]
use cgetc() and cputc() instead of getchar()

13 years agoraise number of items to 32
Michael Stapelberg [Mon, 1 Nov 2010 17:47:30 +0000 (18:47 +0100)]
raise number of items to 32

14 years agoImplement printing a header
Michael Stapelberg [Mon, 2 Nov 2009 12:29:31 +0000 (13:29 +0100)]
Implement printing a header

14 years agoimprove formatting of the start screen rgb2rv7
Michael Stapelberg [Sun, 1 Nov 2009 20:26:16 +0000 (21:26 +0100)]
improve formatting of the start screen

14 years agoUpdate copyright notice, convert files to utf8, add git version to itemz
Michael Stapelberg [Sun, 1 Nov 2009 20:15:27 +0000 (21:15 +0100)]
Update copyright notice, convert files to utf8, add git version to itemz

14 years agohandle selling more than 9 items (whole input will be interpreted, not only first...
Michael Stapelberg [Sun, 1 Nov 2009 20:12:55 +0000 (21:12 +0100)]
handle selling more than 9 items (whole input will be interpreted, not only first digit)

14 years agoMove logging/printing functions to src/print.c, fix compilation of itemz
Michael Stapelberg [Sun, 1 Nov 2009 19:46:29 +0000 (20:46 +0100)]
Move logging/printing functions to src/print.c, fix compilation of itemz

14 years agoCleanup makefile
Michael Stapelberg [Sun, 1 Nov 2009 19:45:21 +0000 (20:45 +0100)]
Cleanup makefile

14 years agoAdd git version string
Michael Stapelberg [Sun, 1 Nov 2009 13:22:13 +0000 (14:22 +0100)]
Add git version string

14 years agoclear screen when starting rgb2rv6
Michael Stapelberg [Sun, 1 Nov 2009 13:05:35 +0000 (14:05 +0100)]
clear screen when starting

14 years agoAdd missing include
Michael Stapelberg [Sun, 1 Nov 2009 13:01:31 +0000 (14:01 +0100)]
Add missing include

14 years agoAdd timestamp for deposit log
Michael Stapelberg [Sun, 1 Nov 2009 11:51:52 +0000 (12:51 +0100)]
Add timestamp for deposit log

14 years agoBugfix: Use correct data type as return value in buy()
Michael Stapelberg [Sun, 1 Nov 2009 11:31:11 +0000 (12:31 +0100)]
Bugfix: Use correct data type as return value in buy()

14 years agoRevert "calculate money when loading statefile"
Michael Stapelberg [Sun, 1 Nov 2009 11:14:22 +0000 (12:14 +0100)]
Revert "calculate money when loading statefile"

This reverts commit c15e61817a0f5c4e4d28e406d8b3761be32f1cfc.

We have to wait until we can use a datatype which doesn’t overflow
so easily. Currently, we have a maximum of 65535, which is, in combination
with other funny bugs (256 entities of X sold) reached quite quickly.

14 years agoClear screen before selling custom entries
Michael Stapelberg [Sun, 1 Nov 2009 11:13:55 +0000 (12:13 +0100)]
Clear screen before selling custom entries

14 years agocalculate money when loading statefile
Michael Stapelberg [Sun, 1 Nov 2009 02:40:41 +0000 (03:40 +0100)]
calculate money when loading statefile

14 years agosave file when exiting credit manager
Michael Stapelberg [Sat, 31 Oct 2009 12:15:14 +0000 (13:15 +0100)]
save file when exiting credit manager

14 years agolog deposits and new credits to printer
Michael Stapelberg [Sat, 31 Oct 2009 11:53:09 +0000 (12:53 +0100)]
log deposits and new credits to printer

14 years agolog the remaining credits
Michael Stapelberg [Sat, 31 Oct 2009 11:21:11 +0000 (12:21 +0100)]
log the remaining credits

14 years agolog: padding for the nickname
Michael Stapelberg [Sat, 31 Oct 2009 11:01:17 +0000 (12:01 +0100)]
log: padding for the nickname

14 years agoBugfix: Fix prototype for set_time()
Michael Stapelberg [Sat, 31 Oct 2009 10:06:24 +0000 (11:06 +0100)]
Bugfix: Fix prototype for set_time()

14 years agoFix linking of itemz
Michael Stapelberg [Thu, 29 Oct 2009 18:25:04 +0000 (19:25 +0100)]
Fix linking of itemz

14 years agoClear screen before asking questions
Michael Stapelberg [Mon, 26 Oct 2009 12:34:25 +0000 (13:34 +0100)]
Clear screen before asking questions

I don’t know if the problem only exists in x128, but without the
clrscr() here the prompt could be outside the visible part of the
screen.

14 years agoFix compilation warnings with cc65 v2.13.0
Michael Stapelberg [Mon, 26 Oct 2009 12:30:17 +0000 (13:30 +0100)]
Fix compilation warnings with cc65 v2.13.0

14 years agoRead the last logfile and set log_lines_written apropriately
Michael Stapelberg [Mon, 26 Oct 2009 12:16:37 +0000 (13:16 +0100)]
Read the last logfile and set log_lines_written apropriately

This will prevent cluttered logfiles if the program is loaded
many times. Previously, a new logfile was always started when
loading.

14 years agoDepend on all include files in Makefile, so that we can get rid of dummies
Michael Stapelberg [Mon, 26 Oct 2009 12:04:42 +0000 (13:04 +0100)]
Depend on all include files in Makefile, so that we can get rid of dummies

include/{cat,itemz}.h were empty and only needed for the build before

14 years agoAdd .gitignore
Michael Stapelberg [Sat, 24 Oct 2009 12:31:25 +0000 (14:31 +0200)]
Add .gitignore

15 years agoSpeicherfehler behoben (Danke Sascha)
sECuRE [Tue, 6 Jan 2009 09:08:45 +0000 (09:08 +0000)]
Speicherfehler behoben (Danke Sascha)

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@91 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoCount the number of sold items when loading itemz-file
sECuRE [Sun, 30 Nov 2008 11:19:57 +0000 (11:19 +0000)]
Count the number of sold items when loading itemz-file

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@90 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoCheck if read < 0
sECuRE [Sun, 30 Nov 2008 11:15:08 +0000 (11:15 +0000)]
Check if read < 0

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@89 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoBugfix: Use CREDITS_PER_PAGE
sECuRE [Sun, 30 Nov 2008 11:13:15 +0000 (11:13 +0000)]
Bugfix: Use CREDITS_PER_PAGE

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@88 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoStore maximum item name's length in MAX_ITEM_NAME_LENGTH to increase it easily
sECuRE [Sun, 30 Nov 2008 11:09:09 +0000 (11:09 +0000)]
Store maximum item name's length in MAX_ITEM_NAME_LENGTH to increase it easily

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@87 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoInitialize memory
sECuRE [Sat, 29 Nov 2008 13:44:31 +0000 (13:44 +0000)]
Initialize memory

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@86 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoFreitext verkaufen können, Druckerproblem gefixed
sECuRE [Sat, 29 Nov 2008 09:20:26 +0000 (09:20 +0000)]
Freitext verkaufen können, Druckerproblem gefixed

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@85 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoLimit Entrys to 10 per Page
sECuRE [Fri, 28 Nov 2008 23:29:07 +0000 (23:29 +0000)]
Limit Entrys to 10 per Page

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@84 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoUse correct datatype for return value
sECuRE [Fri, 28 Nov 2008 22:04:47 +0000 (22:04 +0000)]
Use correct datatype for return value

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@83 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoWrite log in files with 100 lines each (append mode emulation)
sECuRE [Sat, 15 Nov 2008 23:44:47 +0000 (23:44 +0000)]
Write log in files with 100 lines each (append mode emulation)
Extend copyright to 2008
Make comments english (consistent)
Fix spelling errors
Check for not existant items correctly
Cleanup makefile

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@82 af93e077-1a23-4f1e-9cbe-9382a9d578f5

15 years agoUse unlink() instead of _sysremove(), cleanup makefile
sECuRE [Fri, 14 Nov 2008 23:20:40 +0000 (23:20 +0000)]
Use unlink() instead of _sysremove(), cleanup makefile

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@81 af93e077-1a23-4f1e-9cbe-9382a9d578f5

16 years ago* prepend \0x11 to printer output for switching to lower/upper case mode instead of
sur5r [Sun, 4 Nov 2007 01:44:26 +0000 (01:44 +0000)]
* prepend \0x11 to printer output for switching to lower/upper case mode instead of
  upper case/graphics mode

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@80 af93e077-1a23-4f1e-9cbe-9382a9d578f5

16 years agoRemove directory listing (just doesn't work, probably mixing cbm* with stdio again...
sECuRE [Fri, 2 Nov 2007 22:07:14 +0000 (22:07 +0000)]
Remove directory listing (just doesn't work, probably mixing cbm* with stdio again), use "directory<RETURN>" in BASIC

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@79 af93e077-1a23-4f1e-9cbe-9382a9d578f5

16 years agoAdd hex viewer "cat"
sECuRE [Fri, 2 Nov 2007 21:51:13 +0000 (21:51 +0000)]
Add hex viewer "cat"

git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@78 af93e077-1a23-4f1e-9cbe-9382a9d578f5