mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-30 06:29:46 +00:00
Add ReadLocation(MachineLocation)
This commit is contained in:
parent
c72deaab9f
commit
ae643f5728
@ -144,3 +144,14 @@ Gestalt:
|
||||
move.l %a0, %a1@
|
||||
unlk %fp
|
||||
rts
|
||||
|
||||
/* void ReadLocation(MachineLocation * loc) */
|
||||
|
||||
.global ReadLocation
|
||||
ReadLocation:
|
||||
link %fp, #0
|
||||
move.l 8(%fp), %a0
|
||||
move.l #0x000C00E4, %d0 /* ReadLocation */
|
||||
dc.w 0xA051 /* ReadXPRam */
|
||||
unlk %fp
|
||||
rts
|
||||
|
@ -4,8 +4,22 @@
|
||||
*
|
||||
*/
|
||||
|
||||
struct MachineLocation
|
||||
{
|
||||
long latitude;
|
||||
long longitude;
|
||||
union
|
||||
{
|
||||
char dlsDelta;
|
||||
long gmtDelta;
|
||||
} u;
|
||||
};
|
||||
typedef struct MachineLocation MachineLocation;
|
||||
|
||||
|
||||
extern void glue_display_properties(unsigned long *base,
|
||||
unsigned long *row_bytes,
|
||||
unsigned long *width, unsigned long *height,
|
||||
unsigned long *depth, unsigned long *video);
|
||||
extern int Gestalt(unsigned long selector, long * response);
|
||||
extern void ReadLocation(MachineLocation * loc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user