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

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
@ -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
@ -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