1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-12 02:30:44 +00:00

Changes from Maciej

git-svn-id: svn://svn.cc65.org/cc65/trunk@245 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2000-07-31 22:04:21 +00:00
parent 150db59a80
commit f1453ff273
4 changed files with 31 additions and 18 deletions

View File

@ -2,7 +2,7 @@
GEOS constants, 4-2-99, 18-3-99 GEOS constants, 4-2-99, 18-3-99
small C version: 25-27.10.99 small C version: 25-27.10.99
reassembled by Maciej 'YTM/Alliance' Witkowiak reassembled by Maciej 'YTM/Elysium' Witkowiak
*/ */
/* Here are constants which didn't fit into any other cathegory... */ /* Here are constants which didn't fit into any other cathegory... */
@ -39,6 +39,11 @@
/* offset to something */ /* offset to something */
#define OFF_INDEX_PTR 1 #define OFF_INDEX_PTR 1
/* values for CPU_DATA memory config - C64 */
#define IO_IN 0x35
#define KRNL_IO_IN 0x36
#define KRNL_BAS_IO_IN 0x37
/* values for MMU config - C128 */ /* values for MMU config - C128 */
#define CIOIN 0x7E #define CIOIN 0x7E
#define CRAM64K 0x7F #define CRAM64K 0x7F
@ -48,7 +53,7 @@
/* alarmSetFlag */ /* alarmSetFlag */
#define ALARMMASK 4 #define ALARMMASK 4
#define CLR_SAVE 0x40 #define CLR_SAVE 0x40
#define CONSTRAINED 0x40 #define CONSTRAINED 0x40
#define UN_CONSTRAINED 0 #define UN_CONSTRAINED 0
#define FG_SAVE 0x80 #define FG_SAVE 0x80

View File

@ -2,7 +2,7 @@
GEOS structs GEOS structs
ported to small C on 25-27.10.1999 ported to small C on 25-27.10.1999
by Maciej 'YTM/Alliance' Witkowiak by Maciej 'YTM/Elysium' Witkowiak
*/ */
#ifndef _GSTRUCT_H #ifndef _GSTRUCT_H
@ -113,7 +113,13 @@ struct icontab {
struct icondef tab[]; /* table of size declared by icontab.number */ struct icondef tab[]; /* table of size declared by icontab.number */
}; };
/* everything below is obsolete and kept for unknown reasons */ /*
structures below might be used to speed up access to own menus
e.g. if you have menu defined as TopMenu and you want to change the number of
menu items use:
((struct menu*)&TopMenu)->number=newNumber;
This will allow cc65 to emit better code.
*/
struct menuitem { struct menuitem {
char *name; char *name;

View File

@ -1,8 +1,8 @@
/* /*
GEOS constants reassembled 4-2-99 GEOS constants reassembled 4-2-99
ported to small C 26.8.99, 25-26.10.99 ported to small C 26.8.99, 25-26.10.99
Maciej 'YTM/Alliance' Witkowiak Maciej 'YTM/Elysium' Witkowiak
ytm@friko.onet.pl ytm@elysium.pl
*/ */
#ifndef _GSYM_H #ifndef _GSYM_H
@ -46,7 +46,7 @@
#define r7L *(char*)0x10 #define r7L *(char*)0x10
#define r7H *(char*)0x11 #define r7H *(char*)0x11
#define r8 *(unsigned int*)0x12 #define r8 *(unsigned int*)0x12
#define r8L *(char*)0x12 #define r8L *(char*)0x12
#define r8H *(char*)0x13 #define r8H *(char*)0x13
#define r9 *(unsigned int*)0x14 #define r9 *(unsigned int*)0x14
#define r9L *(char*)0x14 #define r9L *(char*)0x14
@ -66,7 +66,7 @@
#define r14 *(unsigned int*)0x1e #define r14 *(unsigned int*)0x1e
#define r14L *(char*)0x1e #define r14L *(char*)0x1e
#define r14H *(char*)0x1f #define r14H *(char*)0x1f
#define r15 *(unsigned int*)0x20 #define r15 *(unsigned int*)0x20
#define r15L *(char*)0x20 #define r15L *(char*)0x20
#define r15H *(char*)0x21 #define r15H *(char*)0x21
/* WARNING - these are used by C as temporary registers! */ /* WARNING - these are used by C as temporary registers! */
@ -86,7 +86,7 @@
#define a4L *(char*)0x74 #define a4L *(char*)0x74
#define a4H *(char*)0x75 #define a4H *(char*)0x75
#define a5 *(unsigned int*)0x76 #define a5 *(unsigned int*)0x76
#define a5L *(char*)0x76 #define a5L *(char*)0x76
#define a5H *(char*)0x77 #define a5H *(char*)0x77
#define a6 *(unsigned int*)0x78 #define a6 *(unsigned int*)0x78
#define a6L *(char*)0x78 #define a6L *(char*)0x78
@ -110,9 +110,6 @@
#define RAM_64K *(char*)0x30 #define RAM_64K *(char*)0x30
#define msePicPtr *(unsigned int*)0x31 #define msePicPtr *(unsigned int*)0x31
#define curWindow (*(struct window*)0x33) #define curWindow (*(struct window*)0x33)
/*#define IO_IN *(char*)0x35
#define KRNL_IO_IN *(char*)0x36
#define KRNL_BAS_IO_IN *(char*)0x37*/
#define pressFlag *(char*)0x39 #define pressFlag *(char*)0x39
#define mousePos (*(struct pixel*)0x3a) #define mousePos (*(struct pixel*)0x3a)
#define returnAddress *(unsigned int*)0x3d #define returnAddress *(unsigned int*)0x3d
@ -126,7 +123,7 @@
#define errno *(char*)0x91 #define errno *(char*)0x91
#define irqvec *(unsigned int*)0x0314 #define irqvec *(unsigned int*)0x0314
#define bkvec *(unsigned int*)0x0316 #define bkvec *(unsigned int*)0x0316
#define nmivec *(unsigned int*)0x0318 #define nmivec *(unsigned int*)0x0318
#define APP_RAM *(char*)0x0400 #define APP_RAM *(char*)0x0400
@ -186,7 +183,7 @@
#define mouseData *(char*)0x8505 #define mouseData *(char*)0x8505
#define inputData *(char*)0x8506 #define inputData *(char*)0x8506
#define mouseSpeed *(char*)0x8507 #define mouseSpeed *(char*)0x8507
#define random *(char*)0x850a #define random *(char*)0x850a
#define saveFontTab (*(struct fontdesc*)0x850c) #define saveFontTab (*(struct fontdesc*)0x850c)
#define dblClickCount *(char*)0x8515 #define dblClickCount *(char*)0x8515
@ -299,4 +296,3 @@
#define vdcdata *(char*)0xd601 #define vdcdata *(char*)0xd601
#endif #endif

View File

@ -1,8 +1,8 @@
; ;
; Maciej 'YTM/Alliance' Witkowiak ; Maciej 'YTM/Elysium' Witkowiak
; ;
; 25.12.99 ; 25.12.99, 30.7.2000
; char FindFTypes (char *buffer, char fileType, char fileMax, char *Class); ; char FindFTypes (char *buffer, char fileType, char fileMax, char *Class);
@ -17,6 +17,7 @@ _FindFTypes:
stx r10H stx r10H
jsr popa jsr popa
sta r7H sta r7H
sta tmpFileMax
jsr popa jsr popa
sta r7L sta r7L
jsr popax jsr popax
@ -24,5 +25,10 @@ _FindFTypes:
stx r6H stx r6H
jsr FindFTypes jsr FindFTypes
stx errno stx errno
txa ; return (fileMax - r7H)
lda tmpFileMax
sec
sbc r7H
rts rts
tmpFileMax: .byte 0