Re: Amiga screen modes in wscons

Carlos Milán Figueredo <[email protected]> Sun, 12 Nov 2023 03:29:29 +0000
Newsgroups gmane.os.netbsd.ports.amiga
Message-ID <CO6P220MB0564C75420E4FB9B94F7A6ADC9ACA@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM>
Hi Michael,=0A=
=0A=
I have been able to compile a WSCONS kernel changing the values of AGA scre=
enmodes, but indeed, it requires a lot of trial to get the right values. Co=
mpiling a new kernel each time is really un-practical, so I understand why =
patching is preferred.=0A=
=0A=
From: [email protected] <[email protected]> on behalf o=
f Michael van Elst <[email protected]>=0A=
Sent: Saturday, November 11, 2023 0:11=0A=
=0A=
> You should be able to use gdb -w to patch the binary.=0A=
=0A=
Using gdb I have been able to find the variables memory addresses, but I ha=
ve not been successful changing them:=0A=
=0A=
# gdb -w netbsd=0A=
(gdb) info variable AGA_htotal=0A=
0x004635d4 pAGA_htotal=0A=
0x00463536 AGA_htotal=0A=
(gdb) set {int}0x00463536 =3D 0x79=0A=
Cannot access memory at address 0x00463536=0A=
=0A=
What am I missing?=0A=
=0A=
Regards,=0A=
Carlos=0A=
=0A=
Carlos Mil=E1n Figueredo | HispaMSX System Operator | http://www.hispamsx.o=
rg | telnet://bbs.hispamsx.org | https://calnus.com=