Recent Posts

Pages: [1] 2 3 ... 10
1
The Campus / Re: Masm failing when called from c++
« Last post by armedturret on Today at 01:36:17 AM »
Quote
tmp.asm(1) : error A2088: END directive required at end of file

The assembler complains that, in line 1, it expected END and didn't find it. Which simply means that tmp.asm is an empty file! So check what the heck the IDE is producing at that point. The easiest thing is to temporarily replace ML.exe (or UAsm64.exe?) with a fake ML.exe that just produces a messagebox. While that box is showing, check if tmp.asm exists, and what's inside.
Welp, turns out I forgot to close the write stream and the file was empty.
2
Romper Room / Rand64
« Last post by jj2007 on Today at 01:25:09 AM »
include \masm32\MasmBasic\MasmBasic.inc         ; download
  Init
  NanoTimer()
  fldz
  For_ ct=1 To 100000000        ; 100 Mio
        push Rand64()
        push edx
        fild qword ptr stack
        .if ct<=20
                PrintLine Str$("%i", ST(0))
        .endif
        fadd
        add esp, QWORD
  Next
  Print Str$("\n%i iterations", ct-1)
  fidivr ct
  Inkey Str$(", average: %f", ST(0)v), " generated in ", NanoTimer$()
EndOfCode


Code: [Select]
8334395503510177650
1329069443230085730
2521605505399485735
-2513648910981773731
-6348034448820748366
-3307815091408750516
4066175164584430395
-3922227355712582401
428641309453789440
-8910786329316853516
-8070429261690835801
6730337785625512305
-7805041995582204841
-5974524378947664316
4637574160357525215
2695508907267694830
-7578088742529087601
8502576381148841940
-5755209493300470646
-385216518631681951
Code: [Select]
100000000 iterations, average: 1.298322e-15 generated in 982 ms
3
The Campus / Re: Masm failing when called from c++
« Last post by aw27 on February 23, 2018, 11:22:03 PM »
It will compile fine if you escape the double quotes and the escapes themselves (if you define the command line inside the C++, otherwise no need).

"h:\\masm32\\bin\\_ml.exe /c /Zd /coff /I\"h:\\masm32\\Include\" tmp.asm"

_ml is my 21 years old masm (unfortunately it is not not whisky).
4
Romper Room / Re: Hi
« Last post by hutch-- on February 23, 2018, 10:32:49 PM »
 :biggrin:

No excuses, just a bit of practice to get the cobwebs out.  :biggrin:

It is actually useful to have a length of time off as it frees you of ideas that need to be renewed and also have new ideas.
5
MasmBasic & the RichMasm IDE / Re: JJ_Include and saveAsTemplate
« Last post by jj2007 on February 23, 2018, 06:54:50 PM »
The file has this now:

Quote
;ExportInc

;$uc


mox eax, 12
mox ebx, 22

;$RL

ExportInc has this: #exp_ii.inc=\masm32\AFprojs\ii.inc

But not working: "Not found after link" message

End token missing. Try this:

; *** the end: exp_ii.inc *** $RL

The editor needs to know where your export stops, so there must be an identical token at the end. Btw this allows means that you can have multiple exports in a single *.asc file. You can even append them all to your main RAID source, after the end start or EndOfCode. This way you are working with a single source, and can search and edit directly if needed.
6
The Laboratory / Re: COBRA POWER!
« Last post by caballero on February 23, 2018, 06:37:55 PM »
I've been wanting to make another game for some time, but it takes a lot of time, and now I don't have much of it, but I hope to start soon.
7
The Soap Box / Re: Tiny C compiler
« Last post by caballero on February 23, 2018, 06:32:10 PM »
Thank you for the news :t
8
Romper Room / Re: Hi
« Last post by TheSvin on February 23, 2018, 06:09:08 PM »
Hopefully, I'll come around)
I 'm Just feeling a little bit rasty, 'cause have not written a single line of code for more than 12 years)
9
MasmBasic & the RichMasm IDE / Re: JJ_Include and saveAsTemplate
« Last post by LordAdef on February 23, 2018, 05:45:20 PM »
The file has this now:

Quote
;ExportInc

;$uc


mox eax, 12
mox ebx, 22

;$RL

ExportInc has this: #exp_ii.inc=\masm32\AFprojs\ii.inc

But not working: "Not found after link" message
10
MasmBasic & the RichMasm IDE / Re: JJ_Include and saveAsTemplate
« Last post by LordAdef on February 23, 2018, 05:34:18 PM »
Thanks, going to try it now.
Pages: [1] 2 3 ... 10