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:
parent
150db59a80
commit
f1453ff273
@ -2,7 +2,7 @@
|
||||
GEOS constants, 4-2-99, 18-3-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... */
|
||||
@ -39,6 +39,11 @@
|
||||
/* offset to something */
|
||||
#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 */
|
||||
#define CIOIN 0x7E
|
||||
#define CRAM64K 0x7F
|
||||
|
@ -2,7 +2,7 @@
|
||||
GEOS structs
|
||||
|
||||
ported to small C on 25-27.10.1999
|
||||
by Maciej 'YTM/Alliance' Witkowiak
|
||||
by Maciej 'YTM/Elysium' Witkowiak
|
||||
*/
|
||||
|
||||
#ifndef _GSTRUCT_H
|
||||
@ -113,7 +113,13 @@ struct icontab {
|
||||
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 {
|
||||
char *name;
|
||||
|
@ -1,8 +1,8 @@
|
||||
/*
|
||||
GEOS constants reassembled 4-2-99
|
||||
ported to small C 26.8.99, 25-26.10.99
|
||||
Maciej 'YTM/Alliance' Witkowiak
|
||||
ytm@friko.onet.pl
|
||||
Maciej 'YTM/Elysium' Witkowiak
|
||||
ytm@elysium.pl
|
||||
*/
|
||||
|
||||
#ifndef _GSYM_H
|
||||
@ -110,9 +110,6 @@
|
||||
#define RAM_64K *(char*)0x30
|
||||
#define msePicPtr *(unsigned int*)0x31
|
||||
#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 mousePos (*(struct pixel*)0x3a)
|
||||
#define returnAddress *(unsigned int*)0x3d
|
||||
@ -299,4 +296,3 @@
|
||||
#define vdcdata *(char*)0xd601
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -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);
|
||||
|
||||
@ -17,6 +17,7 @@ _FindFTypes:
|
||||
stx r10H
|
||||
jsr popa
|
||||
sta r7H
|
||||
sta tmpFileMax
|
||||
jsr popa
|
||||
sta r7L
|
||||
jsr popax
|
||||
@ -24,5 +25,10 @@ _FindFTypes:
|
||||
stx r6H
|
||||
jsr FindFTypes
|
||||
stx errno
|
||||
txa
|
||||
; return (fileMax - r7H)
|
||||
lda tmpFileMax
|
||||
sec
|
||||
sbc r7H
|
||||
rts
|
||||
|
||||
tmpFileMax: .byte 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user