add Agat to samples

This commit is contained in:
Konstantin
2025-06-13 12:51:41 +03:00
parent c28bafa581
commit 8202b520b2
4 changed files with 18 additions and 4 deletions

View File

@@ -37,6 +37,8 @@
# include <apple2enh.h> # include <apple2enh.h>
#elif defined(__APPLE2__) #elif defined(__APPLE2__)
# include <apple2.h> # include <apple2.h>
#elif defined(__AGAT__)
# include <agat.h>
#elif defined(__ATARI__) #elif defined(__ATARI__)
# include <atari.h> # include <atari.h>
#elif defined(__ATARI2600__) #elif defined(__ATARI2600__)

View File

@@ -1,5 +1,6 @@
; ;
; Ullrich von Bassewitz, 26.10.2000 ; Ullrich von Bassewitz, 26.10.2000
; Konstantin Fedorov, 12.06.2025
; ;
; Screen size variables ; Screen size variables
; ;
@@ -9,7 +10,12 @@
.include "agat.inc" .include "agat.inc"
screensize: screensize:
ldx WNDWDTH lda WNDWDTH
bit TATTR
bmi t64
lsr
t64:
tax
lda WNDBTM lda WNDBTM
sec sec
sbc WNDTOP sbc WNDTOP

View File

@@ -158,6 +158,11 @@ DIRLIST = tutorial geos atari2600 atari5200 apple2 gamate lynx supervision sym1
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Lists of executables # Lists of executables
EXELIST_agat = \
ascii \
checkversion \
hello \
sieve
EXELIST_apple2 = \ EXELIST_apple2 = \
ascii \ ascii \
@@ -390,6 +395,7 @@ all:
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# List of every supported platform # List of every supported platform
TARGETS := \ TARGETS := \
agat \
apple2 \ apple2 \
apple2enh \ apple2enh \
atari \ atari \

View File

@@ -12,7 +12,7 @@
/* Workaround missing clock stuff */ /* Workaround missing clock stuff */
#ifdef __APPLE2__ #if defined(__APPLE2__) || defined(__AGAT__)
# define clock() 0 # define clock() 0
# define CLOCKS_PER_SEC 1 # define CLOCKS_PER_SEC 1
#endif #endif