98 Commits
Author SHA1 Message Date
Brandon d262a75cdc Forgot to update a label name 2026-10-17 22:36:29 -04:00
Brandon 39063559d9 Documentation update + random fixes 2026-10-17 21:29:12 -04:00
Brandon 789ca500db Update documentation 2026-09-23 20:23:55 -04:00
Brandon 3c29ae506a More style fixes 2026-09-20 19:26:56 -04:00
Brandon ffac3ecae7 Final(?) style fixes 2026-09-20 19:23:18 -04:00
Brandon f064d8b6e5 Style fixes 2026-09-20 19:18:58 -04:00
Brandon 1028b1ac67 Remove CRs 2026-09-20 19:14:02 -04:00
Brandon c250ce6b66 Small OAM fix 2026-09-20 18:54:54 -04:00
Brandon 476588db62 NES Library update
- Provided an implementation for textcolor(char color) in conio.h
- Updated the header to NES2.0
-Updated the .gitattributes to prefer LF line endings
- Stored CHR-ROM in a binary file (instead of .byte commands)
- Freed up some memory, increased the C stack size from $300 to $400
- Fixed issues #2989, #1570
- Fixed the first frame of startup displaying an uninitialized nametable
- Fixed the conio peek functions causing graphical glitches
- Made the waitvsync() function more robust
- Various other code optimizations
2026-09-20 15:55:27 -04:00
Kugel Fuhr 947eecb65c Add comments to the cputs() and cputc() sources about the former relying on
the latter not to clobber ptr1.
2025-07-04 11:20:35 +02:00
Bob Andrews bc9ebfb077 Update ppubuf.s - fix ppu ringbuffer size as suggested in #1703 2025-06-26 16:05:12 +02:00
mrdudz 0290b276ae fix sysuname for all targets, somehow this was forgotten 2025-06-26 01:21:28 +02:00
Gorilla Sapiens 0489098517 restore comment alignment 2025-06-22 21:34:41 +00:00
Gorilla Sapiens b6f42f9ab2 changed "spc" to "c_sp" 2025-06-04 06:37:59 +00:00
Gorilla Sapiens 3d118dc6e5 rename "sp" to "spc", avoid conflict with 4510 opcodes 2025-06-04 02:06:40 +00:00
mrdudz 228316ff58 NES complete now (tested and conio test updated), replaces what is in #532 2025-05-24 19:19:49 +02:00
mrdudz 0d5e365ee3 Merge branch 'master' into coniopeek 2025-05-24 17:52:58 +02:00
Stefan A. Haubenthal 774e275965 Fixed many comments 2025-03-24 20:52:55 +01:00
mrdudz a24196ee41 Merge branch 'master' into coniopeek 2023-07-08 15:23:42 +02:00
mrdudz ffa83c32a4 clean-up of driver return codes 2023-02-26 20:03:41 +01:00
mrdudz 89c08dc6d4 extra underscores for _randomize and _swap 2022-08-29 20:52:35 +02:00
mrdudz a998d34907 remove tabs 2022-07-24 19:16:15 +02:00
mrdudz aeb13b60a7 rename 2022-07-24 19:10:27 +02:00
mrdudz 10c2ce205b cleanup 2022-07-24 04:59:45 +02:00
mrdudz 9ff58e5bc5 Merge remote-tracking branch 'origin/master' into coniopeek 2022-07-24 03:24:45 +02:00
Bob Andrews e0cc3650e4 Merge branch 'master' into missing-purple 2022-05-17 15:34:51 +02:00
mrdudz f8f901b05e remove dangling spaces 2022-04-17 16:06:22 +02:00
polluks 8e60102e8e Removed the colour purple
This commit may break compatibility.
2022-02-02 00:58:50 +01:00
Stefan 4a224878d8 Preserve the accu 2020-04-06 18:13:54 +02:00
IrgendwerA8 08705a3fdc Changes resulting from 2nd code review 2020-02-03 20:45:09 +01:00
IrgendwerA8 ce80624f62 ctype size optimization 2020-02-03 20:45:09 +01:00
Greg King f2d2f3c193 Moved the NES font into its own object module.
It can be replaced by a custom font when a program is built.
2018-08-29 12:13:58 -04:00
Stefan a4c06f2572 Clean-up because of tgidrv_line.inc 2018-05-22 22:32:50 +00:00
Greg King b844572159 Moved most of the tgi_colors.s files into the libsrc/common/ directory.
Only the Apple2 and Lynx platforms use different codes for the white color; they have their own files.
2018-03-27 07:28:46 -04:00
Oliver Schmidt dacee3b9ed Removed IRQ support from TGI drivers.
All but one TGI drivers didn't use IRQs. Especially when the TGI driver kernel was the only .interruptor this meant quite some unnecessary overhead because it pulled in the whole IRQ infrastructure.

The one driver using IRQs (the graphics driver for the 160x102x16 mode on the Lynx) now uses a library reference to set up a JMP to its IRQ handler.
2018-02-02 18:15:45 +01:00
Oliver Schmidt 1976d6cd32 Removed IRQ support from joystick drivers.
All but one joystick drivers didn't use IRQs. Espsecially when the joystick driver kernel was the only .interruptor this meant quite some unnecessary overhead because it pulled in the whole IRQ infrastructure.

I was told that the one driver using IRQs (the DXS/HIT-4 Player joystick driver for the C64) can be reworked to not do it. Until this is done that driver is defunct.
2018-02-01 22:38:36 +01:00
Oliver Schmidt 7f52a770d9 Removed joy_masks array.
So far the joy_masks array allowed several joystick drivers for a single target to each have different joy_read return values. However this meant that every call to joy_read implied an additional joy_masks lookup to post-process the return value.

Given that almost all targets only come with a single joystick driver this seems an inappropriate overhead. Therefore now the target header files contain constants matching the return value of the joy_read of the joystick driver(s) on that target.

If there indeed are several joystick drivers for a single target they must agree on a common return value for joy_read. In some cases this was alredy the case as there's a "natural" return value for joy_read. However a few joystick drivers need to be adjusted. This may cause some overhead inside the driver. But that is for sure smaller than the overhead introduced by the joy_masks lookup before.

!!! ToDo !!!

The following three joystick drivers become broken with this commit and need to be adjusted:
- atrmj8.s
- c64-numpad.s
- vic20-stdjoy.s
2017-08-19 19:11:28 +02:00
Oliver Schmidt 6002e59c28 Merge pull request #453 from mrdudz/waitvsync
waitvblank for cbm targets
2017-07-18 15:38:27 +02:00
mrdudz 8eee51913a add headers/fix formatting 2017-07-18 01:04:53 +02:00
mrdudz 1abce3a2a1 rename all waitvblank() to waitvsync() 2017-07-17 23:15:05 +02:00
Christian Groessler 39a1a142e3 gamate, lynx, nes, pce: remove joy_stddrv.s
These targets don't support dynamically loaded joystick drivers.
2017-02-06 19:26:12 +01:00
Marshall Ward 09495519c0 NES memory map amend (16k prg, 8k chr default)
The configuration file and runtime (crt0.s) provided for the default NES
ROM layout (2x16k PRG, 8k CHR) incorrectly added interrupts (IRQ1, IRQ2,
TIMERIRQ) which are not supported by the NES hardware.  For example, see
the NESdev wiki, which makes no reference to these interrupts.

    https://wiki.nesdev.com/w/index.php/CPU_memory_map

The VECTORS region was also incorrectly set to 0xFFF6, which would have
left the 0xFFF4 normally unspecified.  This did not result in any error,
however, since cc65 simply placed ROMV directly after ROM0 regardless of
start address.

(This layout may be due to a copy-and-paste from the PC-Engine
configuration, whose interrupt registers start at 0xFFF6, begins with
the three interrupts listed above, followed by NMI and START, and does
not end with a final IRQ interrupt.)

Despite the absence of any actual error, since START is still placed at
0xFFFC, this patch removes the nonexistent interrupts and also correctly
aligns the ROM0 and ROMV regions.  It also has the (admittedly very
minor) benefit of freeing up 6 additional bytes for ROM0.
2016-12-24 08:32:54 +11:00
Oliver Schmidt 13482984ca Introduced internal gotoxy that pops both parameters.
About all CONIO functions offering a <...>xy variant call
  popa
  _gotoxy

By providing an internal gotoxy variant that starts with a popa all those CONIO function can be shortened by 3 bytes. As soon as program calls more than one CONIO function this means an overall code size reduction.
2016-06-05 14:58:38 +02:00
Patrycjusz R. Łogiewa e36a636eee Indenting optimised 2016-05-29 16:34:22 +02:00
Patrycjusz R. Łogiewa ac5bb6707d Post-review changes 2016-05-29 16:19:03 +02:00
Patrycjusz R. Łogiewa ba10c74a7a directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
Patrycjusz R. Łogiewa 93f55c274b moved output of target utils and drivers to separate directory 2016-05-13 14:28:58 +02:00
Oliver Schmidt a2c9cb021a Moved things into ONCE.
Code and or data used only during initialization belongs into the ONCE segment.
2016-03-15 22:55:36 +01:00
Oliver Schmidt 69fbcb30fd Use AX paradigm for stack initalization. 2016-03-07 01:44:19 +01:00
Oliver Schmidt 419eb700b5 Renamed INITBSS to INIT and INIT to ONCE.
The way we want to use the INITBSS segment - and especially the fact that it won't have the type bss on all ROM based targets - means that the name INITBSS is misleading. After all INIT is the best name from my perspective as it serves several purposes and therefore needs a rather generic name.

Unfortunately this means that the current INIT segment needs to be renamed too. Looking for a short (ideally 4 letter) name I came up with ONCE as it contains all code (and data) accessed only once during initialization.
2016-03-06 21:27:19 +01:00