home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 10
/
amigaformatcd10.iso
/
-in_the_mag-
/
emulation
/
abeeb_beta
/
patches
/
pch.c
< prev
Wrap
C/C++ Source or Header
|
1996-04-11
|
327b
|
28 lines
#include <stdio.h>
#include <fcntl.h>
main()
{
unsigned char x [ 16384 ];
int fd;
fd = open ( "OS1.2p1.rom", O_RDWR );
read ( fd, x, 16384 );
/*
* The OSFILE trap
*/
x [ 0x327d ] = 0x22;
/*
* The OSFSC trap
*/
x [ 0x31b1 ] = 0x02;
lseek ( fd, 0, SEEK_SET );
write ( fd, x, 16384 );
close ( fd );
}