Documentation update and SID tweaks
Update to documentation and experimental tweaks investigating an issue with external SID.
This commit is contained in:
parent
e0ecfb6976
commit
1ac6e233b3
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/Memory Map.odg
Normal file
BIN
docs/Memory Map.odg
Normal file
Binary file not shown.
|
@ -912,7 +912,7 @@ short fsys_pgz_loader(short chan, long destination, long * start) {
|
||||||
short data_idx = 0; /* Expected offset for the first byte of the data */
|
short data_idx = 0; /* Expected offset for the first byte of the data */
|
||||||
short result = 0;
|
short result = 0;
|
||||||
|
|
||||||
TRACE("fsys_pgx_loader");
|
TRACE("fsys_pgz_loader");
|
||||||
|
|
||||||
/* Allocate the buffer we'll use for reading the file */
|
/* Allocate the buffer we'll use for reading the file */
|
||||||
chunk = malloc(DEFAULT_CHUNK_SIZE);
|
chunk = malloc(DEFAULT_CHUNK_SIZE);
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include "syscalls.h"
|
#include "syscalls.h"
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
#include "boot.h"
|
#include "boot.h"
|
||||||
|
#include "memory.h"
|
||||||
#include "dev/block.h"
|
#include "dev/block.h"
|
||||||
#include "dev/channel.h"
|
#include "dev/channel.h"
|
||||||
#include "dev/console.h"
|
#include "dev/console.h"
|
||||||
|
@ -27,7 +28,6 @@
|
||||||
#include "dev/txt_screen.h"
|
#include "dev/txt_screen.h"
|
||||||
#include "dev/txt_a2560k_a.h"
|
#include "dev/txt_a2560k_a.h"
|
||||||
#include "dev/txt_a2560k_b.h"
|
#include "dev/txt_a2560k_b.h"
|
||||||
|
|
||||||
#include "dev/pata.h"
|
#include "dev/pata.h"
|
||||||
#include "dev/ps2.h"
|
#include "dev/ps2.h"
|
||||||
#include "dev/rtc.h"
|
#include "dev/rtc.h"
|
||||||
|
@ -44,6 +44,8 @@
|
||||||
|
|
||||||
const char* VolumeStr[FF_VOLUMES] = { "sd", "fd", "hd" };
|
const char* VolumeStr[FF_VOLUMES] = { "sd", "fd", "hd" };
|
||||||
|
|
||||||
|
extern unsigned long __memory_start;
|
||||||
|
|
||||||
#if MODEL == MODEL_FOENIX_A2560K
|
#if MODEL == MODEL_FOENIX_A2560K
|
||||||
/*
|
/*
|
||||||
* Initialize the SuperIO registers
|
* Initialize the SuperIO registers
|
||||||
|
@ -121,6 +123,9 @@ void initialize() {
|
||||||
/* Set the logging level */
|
/* Set the logging level */
|
||||||
log_setlevel(LOG_FATAL);
|
log_setlevel(LOG_FATAL);
|
||||||
|
|
||||||
|
/* Initialize the memory system */
|
||||||
|
mem_init(__memory_start);
|
||||||
|
|
||||||
// /* Hide the mouse */
|
// /* Hide the mouse */
|
||||||
mouse_set_visible(0);
|
mouse_set_visible(0);
|
||||||
|
|
||||||
|
|
8433
src/foenixmcp.s68
8433
src/foenixmcp.s68
File diff suppressed because it is too large
Load diff
|
@ -423,6 +423,10 @@ _call_user:
|
||||||
|
|
||||||
move.l a2,-(a7) ; Push the parameters list
|
move.l a2,-(a7) ; Push the parameters list
|
||||||
move.l d0,-(a7) ; Push the parameter count
|
move.l d0,-(a7) ; Push the parameter count
|
||||||
|
|
||||||
|
move.l a2,a1 ; Move argv to a convenient register
|
||||||
|
move.l d0,d1 ; Move argc to a convenient register
|
||||||
|
|
||||||
jsr (a0)
|
jsr (a0)
|
||||||
|
|
||||||
_restart_cli:
|
_restart_cli:
|
||||||
|
|
15619
src/mapfile
15619
src/mapfile
File diff suppressed because it is too large
Load diff
|
@ -20,7 +20,7 @@ void init_codec() {
|
||||||
codec_wait();
|
codec_wait();
|
||||||
*CODEC = 0x2301; // R17
|
*CODEC = 0x2301; // R17
|
||||||
codec_wait();
|
codec_wait();
|
||||||
*CODEC = 0x2C07; // R22
|
*CODEC = 0x2C07; // R22 - Enable all output sources
|
||||||
codec_wait();
|
codec_wait();
|
||||||
*CODEC = 0x1402; // R10
|
*CODEC = 0x1402; // R10
|
||||||
codec_wait();
|
codec_wait();
|
||||||
|
@ -29,6 +29,11 @@ void init_codec() {
|
||||||
*CODEC = 0x1845; // R12
|
*CODEC = 0x1845; // R12
|
||||||
codec_wait();
|
codec_wait();
|
||||||
|
|
||||||
|
*CODEC = 0x1DFF; // R14 - Max ADC gain left
|
||||||
|
codec_wait();
|
||||||
|
*CODEC = 0x1CFF; // R14 - Max ADC gain left
|
||||||
|
codec_wait();
|
||||||
|
|
||||||
codec_set_volume(0xff);
|
codec_set_volume(0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,4 +41,6 @@ SECTIONS
|
||||||
___kernel_vma_start = ADDR(text);
|
___kernel_vma_start = ADDR(text);
|
||||||
___kernel_lma_start = LOADADDR(text);
|
___kernel_lma_start = LOADADDR(text);
|
||||||
___kernel_lma_end = ___kernel_lma_start + SIZEOF(text);
|
___kernel_lma_end = ___kernel_lma_start + SIZEOF(text);
|
||||||
|
|
||||||
|
___memory_start = STORE_START;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue