flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 05 Feb 2014, 10:14
It is just a standard label name with the same naming restrictions as any other label name. Use an underscore, or something, instead.
|
|||
![]() |
|
sleepsleep 05 Feb 2014, 10:20
now i change it back, it doesn't assemble anymore, weird, sometime it works, sometime it doesn't.
Code: format PE GUI 4.0 entry start include 'win32a.inc' section '.data' data readable writeable apple dd 0 section '.code' code readable executable start: invoke ExitProcess,0 section '.idata' import data readable library kernel32,'KERNEL32.DLL',\ libgtk,'libgtk-3-0.dll' include 'API\KERNEL32.INC' import libgtk,\ gtk_about_dialog_add_credit_section,'gtk_about_dialog_add_credit_section' Quote:
weird,i copied from notepad, there is no CRLF between libgtk,\ to gtk_about.... but once i paste it here, there got CRLF, maybe issue with notepad i guess. |
|||
![]() |
|
sleepsleep 05 Feb 2014, 10:41
![]() 2 CR there? 0D 0D maybe i did something wrong with the dll2inc, i guess. |
|||
![]() |
|
sleepsleep 05 Feb 2014, 10:48
![]() but i didn't put two 0D 0D |
|||
![]() |
|
sleepsleep 05 Feb 2014, 15:43
Code: cinvoke fopen,oufwrite,<'wb+',0> must use b, binary, otherwise, fprintf seems to add another 0x0D into buffer. |
|||
![]() |
|
baldr 05 Feb 2014, 16:41
sleepsleep,
Yep, C runtime writes '\r\n' instead of each '\n' for files opened in text mode. This is platform-specific issue, because historically end-of-line is represented as CR LF pair in DOS and Windows; thus text streams use that translation internally during input/output. |
|||
![]() |
|
sleepsleep 05 Feb 2014, 17:08
thanks, baldr =)
|
|||
![]() |
|
revolution 05 Feb 2014, 18:32
sleepsleep wrote:
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.