1
0
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:
Laurent Vivier 2004-02-24 22:30:14 +00:00
parent c72deaab9f
commit ae643f5728
2 changed files with 25 additions and 0 deletions

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