a5: Anpassung Offset
This commit is contained in:
parent
98d1ae60ae
commit
7654da783f
|
@ -3,3 +3,10 @@
|
|||
bin
|
||||
cmake-build-debug
|
||||
CMakeFiles
|
||||
*.cmake
|
||||
CMakeCache.txt
|
||||
Makefile
|
||||
Hardwarenahe_Programmierung.cbp
|
||||
*~
|
||||
*.[oa]
|
||||
src/c/a5/flagtest
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# C-Quellcode kompilieren und mit ASM-Modul linken
|
||||
flagtest: addsub.o flagtest.o
|
||||
gcc -m32 -o flagtest flagtest.o addsub.o # linken
|
||||
gcc -m32 -o flagtest flagtest.o addsub.o -Wall -Wextra # linken
|
||||
|
||||
flagtest.o: flagtest.c
|
||||
gcc -m32 -c -o flagtest.o flagtest.c # compilieren
|
||||
gcc -m32 -c -o flagtest.o flagtest.c -Wall -Wextra # compilieren
|
||||
|
||||
# ASM-Modul assemblieren
|
||||
addsub.o: addsub.asm
|
||||
|
|
|
@ -32,11 +32,11 @@ return:
|
|||
|
||||
;FIXME: Hier wird an die falsche Stelle oder so geschrieben
|
||||
|
||||
mov ebx, [ebp+24]
|
||||
mov ebx, [ebp+20]
|
||||
|
||||
mov [ebx], edx
|
||||
|
||||
;mov [ebp+24], edx;Flagregister aus edx in flags ptr aus C kopieren
|
||||
;mov [ebp+20], edx;Flagregister aus edx in flags ptr aus C kopieren
|
||||
;mov word[ebp+24], 32
|
||||
|
||||
pop edx
|
||||
|
|
Loading…
Reference in New Issue