-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmac.cfg
More file actions
213 lines (174 loc) · 8.87 KB
/
mac.cfg
File metadata and controls
213 lines (174 loc) · 8.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# -----------------------------------------------------------------------------
# CPU and Platform
# -----------------------------------------------------------------------------
# Sets CPU type. Valid types are (probably) 68000, 68010, 68020, 68EC020, 68030,
# 68EC030, 68040, 68EC040, 68LC040 and some STTTT thing.
cpu 68020
#setvar no-pistorm-dev
# Set the platform to Amiga to enable all the registers and stuff.
platform mac68k
# -----------------------------------------------------------------------------
# Kickstart / ROMs
# -----------------------------------------------------------------------------
# Map 512KB kickstart ROM to default offset.
map type=rom address=0xF80000 size=0x80000 file=macse.rom ovl=0 id=kickstart
# Comment out the line above and uncomment the line below to automatically copy
# the ROM contents to Pi RAM if the file isn't found
#map type=rom address=0xF80000 size=0x80000 file=kickstart.rom ovl=1 id=kickstart autodump_mem
# "Blackhole" the detected slow RAM on the Amiga 600. This enables maprom to
# work without using specifically kick v40.63
# DO NOT ENABLE THIS UNLESS YOU ARE USING THE PISTORM ON AN AMIGA 600.
#map type=register address=0xC00000 size=0x80000 id=blackhole_slow_a600
# Want to map an extended ROM, such as CDTV or CD32?
#map type=rom address=0xF00000 size=0x80000 file=cdtv.rom id=extended
# -----------------------------------------------------------------------------
# Memory Maps
# -----------------------------------------------------------------------------
# Map 128MB of Fast RAM at 0x8000000, also known as 32-bit Fast RAM or CPU local
# Fast RAM. Only supported properly on select Kickstarts, such as 3.1+ for Amiga
# 1200, 3000 and 4000.
map type=ram address=0x08000000 size=128M id=cpu_slot_ram
# Fake 512K slow RAM at 0x00C00000
#map type=ram address=0x00C00000 size=0x80000 id=slow0
#
## Another 512K slow at 0x00C80000
#map type=ram address=0x00C80000 size=0x80000 id=slow1
# Another 512K at 0x00D00000
#map type=ram address=0x00D00000 size=0x80000 id=slow2
# Map 128MB of Z3 Fast. Note that the address here is not actually used, as it
# gets auto-assigned by Kickstart itself.
# Enabling Z3 fast requires at least Kickstart 2.0.
# If for some reason you need more than 128MB, you can change the size=128M to a
# valid supported Z3 PIC size, like 256M, 512M, 1024M, or add additional map lines.
map type=ram address=0x10000000 size=256M id=z3_autoconf_fast
#map type=ram address=0x10000000 size=1024M id=z3_autoconf_fast
#map type=ram address=0x50000000 size=256M id=z3_autoconf_fast
# Dedicated Z3 DMA window for PiSCSI (keeps Z2 at 8 MB)
map type=ram address=0x60000000 size=16M id=piscsi_dma
#map type=ram address=0x90000000 size=256M id=z3_autoconf_fast
map type=ram address=0xD0000000 size=256M id=z3_autoconf_fast
# Max 8MB of Z2 Fast can be mapped due to addressing space limitations, but for
# instance 2+4MB can be chained to leave 2MB for something else.
# Do not map Zorro II Fast RAM unless you absolutely need it, as Z2 address space
# is very limited. Cases where you may need Zorro II Fast may include emulating a
# 68000, 68010 or 68EC020, and/or if you are using Kickstart 1.3.
map type=ram address=0x200000 size=8M id=z2_autoconf_fast
#map type=ram address=0x200000 size=2M id=z2_autoconf_fast
#map type=ram address=0x400000 size=4M id=z2_autoconf_fast
# This is fake Chip RAM, may be used on a real Amiga 500 OCS Denise ECS Agnus 8372A
#
# For A500 tests, an extra 1MB can be faked at 0x00C00000; with a 8371A/8372A
# Fat Agnus and RTG enabled, this has been observed to work.
map type=ram address=0x00C00000 size=1M
# Map Gayle as a register range.
# NOTE: Gayle emulation is currently non-functional. Do not enable this.
#map type=register address=0xD80000 size=0x40000
# Map RTC as a register range.
map type=register address=0xDC0000 size=0x10000
# -----------------------------------------------------------------------------
# IPL
# -----------------------------------------------------------------------------
# (No explicit IPL knobs here; see platform logs for IPL NOP count and behavior.)
# -----------------------------------------------------------------------------
# Threads / Timing
# -----------------------------------------------------------------------------
# Number of instructions to run every main loop.
loopcycles 200
# Thread affinity/priority hints (host-side scheduling).
affinity cpu=2,ipl=3,keyboard=1,mouse=1
rtprio cpu=95,ipl=95,keyboard=50,mouse=50
# -----------------------------------------------------------------------------
# FC Lines
# -----------------------------------------------------------------------------
# Optional: enable FC line shadow logging (stub or cpld).
setvar enable_fc stub
setvar z3bus-demo 1
setvar zorro-serial 1
# -----------------------------------------------------------------------------
# Platform Features
# -----------------------------------------------------------------------------
# Uncommenting the below this long comment DISABLES RTC emulation, letting
# reads/writes through to the RTC memory range.
# There is no need to uncomment it unless you are either using a CDTV, you want
# to use a physical RTC source present inside the computer, such as on a trapdoor
# memory expansion board, or if you have a physical A314 intalled, since the
# A314 uses the RTC address range to communicate with the Amiga, and enabling RTC
# emulation blocks this communication completely.
# DO NOT UNCOMMENT THE LINE BELOW UNLESS YOU'VE READ AND UNDERSTOOD THE FIVE
# LINES ABOVE THIS ONE.
setvar enable_rtc_emulation 1
# Uncomment to enable RTG
setvar rtg
# RTG DPMS note:
# This relied on older VideoCore/TV service paths and is redundant on Pi4 / DRM.
# With Raylib/DRM it does not work, so leave it disabled.
#setvar rtg-dpms
# Use 0 to auto-detect the preferred DRM mode.
#setvar rtg-width 0
#setvar rtg-height 0
# Uncomment the following lines to set the RTG native screen resolution width
# and height. Default is 1280x720.
setvar rtg-width 1280
setvar rtg-height 720
# Uncommenting the lines below here sets the specified sample rate for the
# Pistorm AHI device and enables the PiStorm AHI device respectively. The
# PiStorm AHI device does not yet work properly, please read the information in
# the readme file located in the directory platforms/amiga/ahi.
#setvar pi-ahi-samplerate 44100
#setvar pi-ahi
# Uncomment to enable CDTV mode (not working, requires Kickstart 1.3+CDTV
# extended ROM)
#setvar cdtv
# Uncomment this line to enable the PiSCSI interface
setvar piscsi
# Use setvar piscsi0 through piscsi6 to add up to seven mapped drives to the
# interface.
setvar piscsi0 ../Amiga/hdf/KernelPiStormBench.hdf
#setvar piscsi1 PI1.hdf
# A special disk that includes PiStorm drivers and utilities, comment out if
# not needed
setvar piscsi6 ./src/platforms/amiga/pistorm.hdf
# Uncomment this line to enable the (currently non-working) Pi-Net interface.
setvar pi-net
# Uncomment and edit to set custom install locations for the A314 emulation
setvar pistorm_root /opt/pistorm64
# or set each explicitly:
setvar pistorm_a314 /opt/pistorm64/a314
setvar pistorm_data /opt/pistorm64/data
setvar a314_shared /opt/pistorm64/data/a314-shared
setvar a314_conf /opt/pistorm64/a314/a314d.conf
setvar a314_fs_conf /opt/pistorm64/a314/a314fs.conf
# Uncomment to enable A314 emulation
setvar a314
# Please take note:
# At the time of writing this (22 Jun 2021), the mouse and keyboard forwarding
# (for Amiga only) is by no means perfect. It works properly in Workbench, and
# in a number of games and applications, but it does not work for everything.
# Do not rely on the mouse and keyboard forwarding as your only means of input
# for the host computer.
# Forward keyboard events to host system, defaults to off unless toggle key is
# pressed, toggled off using F12.
# Syntax: keyboard [grab key] [grab|nograb] [autoconnect|noautoconnect]
# "grab" steals the keyboard from the Pi so Amiga/etc. input is not sent to
# the Pi (also helps prevent sending any ctrl-alt-del to the Amiga from
# resetting the Pi)
#
# "autoconnect" connects the keyboard to the Amiga/etc. on startup
#keyboard k nograb noautoconnect
# Select a specific filename for the keyboard event source.
# This is typically /dev/input/event1 or event0, but it may be event3 with for
# instance a wireless keyboard.
# Use ls /dev/input/event* to check which event files are available and try
# until you find the one that works.
#kbfile /dev/input/event1
# Forward mouse events to host system, defaults to off unless toggle key is
# pressed on the Pi.
# Syntax is mouse [device] [toggle key] [autoconnect|noautoconnect]
# (see "keyboard" above for autoconnect description)
#mouse /dev/input/mice m noautoconnect
# Uncommenting below moves slow ram to the chip ram giving 1MB of chip ram
# NOTE: Requires a 1MB ECS Agnus (8372) and a trapdoor memory expansion!
# setvar move-slow-to-chip
# Swap DF0 with DF1/2/3 - Useful for Kickstart 1.x / Trackloader games that will
# only boot from DF0
#setvar swap-df0-df 1