-
Hilfe bei Picbasic
Habe folgendes Problem....
Kann ich diese daten die im ASM......ENDASM stehen auch gleich zeitig noch in anderen Basicvariablen speichern zur weiteren Verarbeitung.
ASM
R_PORTA equ 20h
R_DATEN equ 22h
R_DATA equ 24h
ENDASM
z.B in
S_PORTA var Byte
S_DATEN var Byte
S_DATA var Byte
Also die sollen dann gleich sein...
R_DATEN = S_DATEN
usw
vielen Dank im Voraus
Frank
-
Hi,
Read chapter 8 of the PicBasic Pro manual. (PDF file).
Chapter 8 = Assembly Language Programming
From the manual:
"If variables are to be shared between assembly and PBP, you must define
the variables in PBP".
Luciano
-
Danke
hat alles soweit funktioniert außer bei den Port zuweisungen.
z.b.....
ASM
A_X1 equ d'1' ; Port A0, X1
A_X2 equ d'0' ; Port A1, X2
A_X3 equ d'7' ; Port A7, X3
A_X4 equ d'6' ; Port A6, X4
A_X5 equ d'5' ; Port A5, X5
A_X6 equ d'4' ; Port A4, X6
A_X7 equ d'3' ; Port A3, X7
A_X8 equ d'2' ; Port A2, X8
ENDASM
Gibts dafür wieder einen anderen Befehl als DEFINE
dank schon mal im vorraus
Frank
-
Have have I missed an announcement, is the the new forum language german ?
-
OK,
just define your variables in PBP !!!!!!!!!!!!!!!!!!!!!!!!!
You can access them inside the ASM-ENDASM-Part by using a _ in front of the names !
Or you define the variables in PBP with the option "system" to adress the variables without _ in ASM-ENDASM-Parts.
Mayby it is helpful to read the sample-programs in this forum or to use the search-function !
BTW: Use english language in this forum, so you can achieve better support by the MODs!
I'm from German too !