fix: correction génération code 16bits en C
This commit is contained in:
parent
0c6b0635ab
commit
d3abee6a74
|
@ -1,6 +1,7 @@
|
||||||
target remote localhost:1234
|
target remote localhost:1234
|
||||||
set disassembly-flavor att
|
set disassembly-flavor att
|
||||||
|
symbol-file ./system/realmode/setup.sym
|
||||||
set architecture i8086
|
set architecture i8086
|
||||||
break *0x7c00
|
break *0x90200
|
||||||
cont
|
cont
|
||||||
clear *0x7c00
|
clear *0x90200
|
||||||
|
|
|
@ -6,3 +6,4 @@ ata0: enabled=1, ioaddr1=0x1f0, ioaddr2=0x3f0, irq=14
|
||||||
ata0-master: type=disk, mode=flat, translation=auto, path="./final/harddisk.img.final", cylinders=0, heads=0, spt=0, biosdetect=auto, model="Generic 1234"
|
ata0-master: type=disk, mode=flat, translation=auto, path="./final/harddisk.img.final", cylinders=0, heads=0, spt=0, biosdetect=auto, model="Generic 1234"
|
||||||
cpu: count=1, ips=20000000
|
cpu: count=1, ips=20000000
|
||||||
mouse: enabled=1
|
mouse: enabled=1
|
||||||
|
display_library: wx, options="gui_debug"
|
||||||
|
|
|
@ -11,16 +11,16 @@ tmux splitw -v -p 50
|
||||||
|
|
||||||
tmux send-keys -t 5 "gdb --init-command=./debug/gdbinit -x $1" Enter
|
tmux send-keys -t 5 "gdb --init-command=./debug/gdbinit -x $1" Enter
|
||||||
tmux send-keys -t 3 "telnet 127.0.0.1 6666" Enter
|
tmux send-keys -t 3 "telnet 127.0.0.1 6666" Enter
|
||||||
tmux send-keys -t 5 "dashboard stack -output /dev/pts/6" Enter
|
tmux send-keys -t 5 "dashboard stack -output /dev/pts/4" Enter
|
||||||
tmux send-keys -t 5 "dashboard threads -output /dev/null" Enter
|
tmux send-keys -t 5 "dashboard threads -output /dev/null" Enter
|
||||||
tmux send-keys -t 5 "dashboard assembly -output /dev/pts/5" Enter
|
tmux send-keys -t 5 "dashboard assembly -output /dev/pts/3" Enter
|
||||||
tmux send-keys -t 5 "dashboard registers -output /dev/pts/3" Enter
|
tmux send-keys -t 5 "dashboard registers -output /dev/pts/2" Enter
|
||||||
tmux send-keys -t 5 "dashboard expressions -output /dev/pts/8" Enter
|
tmux send-keys -t 5 "dashboard expressions -output /dev/pts/6" Enter
|
||||||
tmux send-keys -t 5 "dashboard memory -output /dev/pts/8" Enter
|
tmux send-keys -t 5 "dashboard memory -output /dev/pts/6" Enter
|
||||||
tmux send-keys -t 5 "dashboard source -output /dev/pts/5" Enter
|
tmux send-keys -t 5 "dashboard source -output /dev/pts/3" Enter
|
||||||
tmux send-keys -t 5 "dashboard history -output /dev/pts/10" Enter
|
tmux send-keys -t 5 "dashboard history -output /dev/pts/7" Enter
|
||||||
tmux send-keys -t 5 "dashboard threads -output /dev/null" Enter
|
tmux send-keys -t 5 "dashboard threads -output /dev/null" Enter
|
||||||
tmux send-keys -t 5 "dashboard stack -output /dev/pts/6" Enter
|
tmux send-keys -t 5 "dashboard stack -output /dev/pts/4" Enter
|
||||||
tmux new-window -t $session:1 -n scratch
|
tmux new-window -t $session:1 -n scratch
|
||||||
tmux select-window -t $session:0
|
tmux select-window -t $session:0
|
||||||
tmux attach-session -t $session
|
tmux attach-session -t $session
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
target remote localhost:1234
|
target remote localhost:1234
|
||||||
set disassembly-flavor intel
|
set disassembly-flavor att
|
||||||
set architecture i386
|
set architecture i386
|
||||||
symbol-file ./system/realmode/setup.sym
|
symbol-file ./system/system.sym
|
||||||
|
break start
|
||||||
break system.c:50
|
break system.c:50
|
||||||
cont
|
cont
|
||||||
clear system.c:50
|
clear system.c:50
|
||||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ echo ${lo}
|
||||||
losetup -P ${lo} harddisk.img
|
losetup -P ${lo} harddisk.img
|
||||||
mkfs.ext2 ${lo}p1
|
mkfs.ext2 ${lo}p1
|
||||||
mount ${lo}p1 /mnt
|
mount ${lo}p1 /mnt
|
||||||
grub-install --no-floppy --install-modules="biosdisk part_msdos ext2 configfile normal linux vbe png gfxmenu video video_colors video_cirrus video_fb" --boot-directory=/mnt/boot ${lo} --target=i386-pc
|
grub-install --no-floppy --install-modules="biosdisk part_msdos ext2 configfile normal linux16 vbe png gfxmenu video video_colors video_cirrus video_fb" --boot-directory=/mnt/boot ${lo} --target=i386-pc
|
||||||
echo -en "\
|
echo -en "\
|
||||||
insmod ext2
|
insmod ext2
|
||||||
insmod biosdisk
|
insmod biosdisk
|
||||||
|
@ -22,7 +22,7 @@ set timeout=4\n\
|
||||||
set default=0\n\
|
set default=0\n\
|
||||||
menuentry "cos2000" {\n\
|
menuentry "cos2000" {\n\
|
||||||
set root=(hd0,1)\n\
|
set root=(hd0,1)\n\
|
||||||
linux /boot/system.sys\n
|
linux16 /boot/system.sys\n
|
||||||
boot\n\
|
boot\n\
|
||||||
}" > /mnt/boot/grub/grub.cfg
|
}" > /mnt/boot/grub/grub.cfg
|
||||||
umount /mnt
|
umount /mnt
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
GCC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -Wall -w -I ../../include -m16 -fomit-frame-pointer -fno-pie -no-pie -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -c
|
GCC=gcc -O0 -g -nostdinc -ffreestanding -fno-builtin -Wall -w -I ../../include -march=i386 -m16 -fomit-frame-pointer -fno-pie -no-pie -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -c
|
||||||
ASM=gcc -m16 -fomit-frame-pointer -fno-pie -no-pie -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -D__ASSEMBLY__ -I ../ -I ../../include -c -o
|
ASM=gcc -m16 -march=i386 -fomit-frame-pointer -fno-pie -no-pie -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -D__ASSEMBLY__ -I ../ -I ../../include -c -o
|
||||||
LINK=ld -m elf_i386 -n
|
LINK=ld -m elf_i386 -n
|
||||||
CONVERT=dos2unix
|
CONVERT=dos2unix
|
||||||
INDENT=indent -nhnl -l75 -ppi3 -ts8 -bls -nbc -di8 -nbad -nbap -nsob -i8 -bl -bli0 -ncdw -nce -cli8 -cbi0 -npcs -cs -saf -sai -saw -nprs -lp -npsl
|
INDENT=indent -nhnl -l75 -ppi3 -ts8 -bls -nbc -di8 -nbad -nbap -nsob -i8 -bl -bli0 -ncdw -nce -cli8 -cbi0 -npcs -cs -saf -sai -saw -nprs -lp -npsl
|
||||||
|
|
|
@ -354,6 +354,7 @@ void initpmode(u32 offset)
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
showstr("Chargement de COS2000 - mode reel");
|
showstr("Chargement de COS2000 - mode reel");
|
||||||
|
waitchar();
|
||||||
/* initparams(); */
|
/* initparams(); */
|
||||||
initmemory();
|
initmemory();
|
||||||
initkeyboard();
|
initkeyboard();
|
||||||
|
|
Loading…
Reference in New Issue