Seite 1 von 1

pbcompiler --commented ; mein Kommentar erhalten

Verfasst: 25.10.2018 09:02
von juergenkulow
Hallo,

gibt es eine einfache Möglichkeit in der ASM-Ausgabe von pbcompiler --commented meinen eigenen Kommentar aus dem Purebasicprogramm zu bekommen?
Im Beispiel wäre das: " ; mein Kommentar eigentlich PrintN(?out_str) "

Code: Alles auswählen

OpenConsole() 
s.s=PeekS(?out_str) : PrintN(s) ; mein Kommentar eigentlich PrintN(?out_str)
Input() 
CloseConsole() 
DataSection : out_str:
  Data.s "Hallo sichtbares Universum." :EndDataSection
  ; pbcompiler --commented Auszug: 
;   ; OpenConsole() 
;   CALL   PB_OpenConsole
; ; s.s=PeekS(?out_str) : PrintN(s) 
;   MOV    rax,[PB_StringBasePosition]
;   PUSH   rax
;   SUB    rsp,8
;   PUSH   rax
;   MOV    rbp,l_out_str
;   MOV    rax,rbp
;   MOV    rcx,rax
;   POP    rdx
;   SUB    rsp,32
;   CALL   PB_PeekS
;   ADD    rsp,40
;   LEA    rcx,[v_s]
;   POP    rdx
;   CALL   SYS_AllocateString4
;   MOV    rcx,qword [v_s]
;   CALL   qword [PB_PrintN]
; ; Input() 
;   MOV    rax,[PB_StringBasePosition]
;   PUSH   rax
;   SUB    rsp,8
;   PUSH   rax
;   POP    rcx
;   SUB    rsp,32
;   CALL   qword [PB_Input]
;   ADD    rsp,40
;   POP    qword [PB_StringBasePosition]
; ; CloseConsole() 
;   CALL   PB_CloseConsole
Gruß

Re: pbcompiler --commented ; mein Kommentar erhalten

Verfasst: 25.10.2018 09:11
von RSBasic
Mit PB-Kommentarzeichen nicht, aber du kannst eine Dummy-Zeile als Kommentar schreiben. Irgendwas sinnloses, was mitkompiliert wird.
Z.B. dummy_string.s = "Hallo mein Kommentar für diese Zeile"