Chameleon

Chameleon Commit Details

Date:2011-06-24 12:47:57 (8 years 3 months ago)
Author:Azimutz
Commit:1051
Parents: 1050
Message:More tidy up.
Changes:
M/trunk/i386/libsaio/console.c
M/trunk/i386/libsa/memory.h
M/trunk/i386/libsa/prf.c

File differences

trunk/i386/libsaio/console.c
263263
264264
265265
266
267
266
268267
void pause()
{
printf("Press a key to continue...\n");
getchar(); //getc(); //Azi: getc works here because the function is up above; changed for now.
// replace getchar() by pause() ??
getchar(); // replace getchar() by pause() ?? were useful...?
}
trunk/i386/libsa/prf.c
9393
9494
9595
96
96
9797
9898
9999
void prf(
char *fmt,
unsigned int *adx,
int (*putfn_p)(),
int (*putfn_p)(),
void *putfn_arg
)
{
trunk/i386/libsa/memory.h
4848
4949
5050
51
52
51
52
5353
54
55
54
55
5656
57
58
57
58
5959
60
60
6161
62
63
62
63
6464
65
65
6666
6767
6868
# define BASE_SEG BOOT2_SEG
#endif
#define STACK_SEG 0x1000 // zef: old STACK_SEG 0x5000
#define STACK_OFS 0xFFF0 // stack pointer
#define STACK_SEG0x1000// zef: old STACK_SEG 0x5000
#define STACK_OFS0xFFF0// stack pointer
#define BOOT1U_SEG 0x1000
#define BOOT1U_OFS 0x0200
#define BOOT1U_SEG0x1000
#define BOOT1U_OFS0x0200
#define BOOT2_SEG 0x2000
#define BOOT2_OFS 0x0200 // 512 byte disk sector offset
#define BOOT2_SEG0x2000
#define BOOT2_OFS0x0200// 512 byte disk sector offset
#define BOOT2_MAX_LENGTH 0x6FE00 // Maximum size for boot2 is currentl 447kb
#define BOOT2_MAX_LENGTH0x6FE00// Maximum size for boot2 is currentl 447kb
#define BIOS_ADDR 0x8000 // BIOS disk I/O buffer
#define BIOS_LEN 0x8000 // 32K - divisible by 512 and 2048
#define BIOS_ADDR0x8000// BIOS disk I/O buffer
#define BIOS_LEN0x8000// 32K - divisible by 512 and 2048
#define BOOT0_ADDR 0x7E00 // boot0 gets loaded here
#define BOOT0_ADDR0x7E00// boot0 gets loaded here
/* These are all "virtual" addresses...

Archive Download the corresponding diff file

Revision: 1051