Recent Posts

Pages: [1] 2 3 ... 10
Pelle's C compiler and tools / Re: Tiny Lousy (TL) programs
« Last post by TimoVJL on Today at 06:31:29 PM »
Here is a TLWHViewRE package for testing

Link for TLWHViewRE in PellesC site.

TLWHViewRE.exe and TLWHViewRE64.exe for viewing Windows help files (.mshc)
IndexWHelp.exe for creating index-files from help files (.mshc)

TLWHViewRE have only one commandline option / for keyword like /Sleep

From Help files is possible to download cab-files for offline tests.

vs Documentation 2012/2013 ISO 2.7/4GB
Basic Windows API is in v2Windows_Development_Desktop_App_Development_B975_VS_85_en-us_ files. contains some support programs for viewer:
  • WHelpCatalocs for downloading the 'All Book Listings.htm'.
  • WHelpCabs for creating a DownloadCabs.ini from 'All Book Listings.htm' file.
  • DownloadCabs for downloading cab-files listed in the DownloadCabs.ini
  • UnpackCabs for unpacking downloaded cab-files
  • IndexWHelp for indexing help files (.mshc)
An example of patch-file for creating an ini-file for viewer and test it:

Code: [Select]
SET MSHC_PATH=C:\code\MSDN-2018\msh
IndexWHelp.exe %MSHC_PATH%
echo [mshc]>TLWHViewRE.ini
echo Path=%MSHC_PATH%>>TLWHViewRE.ini
echo [mshc]>TLWHViewRE64.ini
echo Path=%MSHC_PATH%>>TLWHViewRE64.ini
TLWHViewRE.exe /Sleep
Custom Interface Components / ModernUI_DesktopFace example TrumpBot
« Last post by fearless on Today at 12:01:50 PM »
Had this example lying round for a bit in early test versions, which I showed to my daughter who thought it was funny. So decided to tidy it up and use it with the ModernUI_DesktopFace control properly. I'd created a version for my daughter previously with her face that would popup on the desktop and her saying random things that we recorded.

I've only tried it on my Win 7 x64 pc, so dont know how it will work on other OS's. Also probably some tidying up could be done with the control, as I've noticed occasionally some odd flickering when hiding, or when clicking whilst the hiding animation starts, or double clicking sometimes the hide animation resets itself - minor things i think - anyhow hope you all enjoy it. Also watch you dont accidentally launch some icons on your desktop as your clicking on trump's face as he moves about.
Pelle's C compiler and tools / Re: Tiny Lousy (TL) programs
« Last post by Caché GB on Today at 12:01:17 PM »
Hello TimoVJL

Welcome to the forum.

I think for some people, once they go past a threshold (depth) in assembler, they just can't come up agian.

Quote from:  The Power of Ten – Rules for Developing Safety Critical Code

"At many organizations, JPL included, critical code is written in C."
Pelle's C compiler and tools / Re: Tiny Lousy (TL) programs
« Last post by Siekmanski on Today at 09:03:36 AM »
Pelle's C compiler and tools / Re: Tiny Lousy (TL) programs
« Last post by jj2007 on Today at 08:59:29 AM »

Don't despair - your work is important for Pelles C. And as long as you enjoy your own coding as much as I do enjoy my MasmBasic coding, everything is fine  :lol:

As Erol wrote above: Keep up the good work :icon14:
MASM64 SDK / Re: Random seed for random algorithm example
« Last post by hutch-- on Today at 08:12:54 AM »
This is the version I use in the library.

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

 get_unique_seed proc
  ; ------------------------------------
  ; create a seed for a random algo that
  ; is extremely difficult to re-produce
  ; ------------------------------------
    LOCAL var1  :QWORD
    LOCAL var2  :QWORD
    LOCAL var3  :QWORD
    LOCAL var4  :QWORD
    LOCAL var5  :QWORD

    invoke QueryPerformanceCounter,ADDR var1
    invoke QueryPerformanceCounter,ADDR var2
    invoke QueryPerformanceCounter,ADDR var3
    invoke QueryPerformanceCounter,ADDR var4
    invoke QueryPerformanceCounter,ADDR var5

    mov rax, var1
    mov rcx, var2
    rol rcx, 13
    mov rdx, var3
    rol rdx, 26
    mov r10, var4
    rol r10, 39
    mov r11, var5
    rol r11, 52
    xor rax, rcx
    xor rax, rdx
    xor rax, r10
    xor rax, r11
    bswap rax


 get_unique_seed endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
MASM64 SDK / Re: Random seed for random algorithm example
« Last post by hutch-- on Today at 08:01:22 AM »
Here is the replacement, it worked OK when I first wrote it but Win10 keeps changing and the register usage so I changed the registers to preserved non-volatile ones but kept the algorithm identical. From Win32 help,
Return Values
If the installed hardware supports a high-resolution performance counter, the return value is nonzero.
If the installed hardware does not support a high-resolution performance counter, the return value is zero.
This is why you were getting a zero return value from QueryPerformanceCounter().
This is the output which is different every call.

Press any key to continue...

The example.

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    include \masm32\include64\


; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

entry_point proc

    LOCAL lcnt  :QWORD

    mov lcnt, 20

    call reseed
    conout str$(rax),lf
    sub lcnt, 1
    jnz lbl


entry_point endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤


 reseed proc
  ; --------------------------------------
  ; random algorithm random seed generator
  ; --------------------------------------
    LOCAL var1  :QWORD
    USING r13,r14,r15


    lea r14, var1                           ; load the address
    mov r13, 1000                           ; set the counter
    mov r15, 12345678                       ; put something in r15

    rcall QueryPerformanceCounter, r14      ; call the API
    mov rax, [r14]                          ; write value in var1 to rax
    bswap rax                               ; byte swap rax
    xor r15, rax                            ; xor combine with r15
    sub r13, 1                              ; decrement counter
    jnz @B                                  ; loop again if not 0

    mov rax, r15                            ; return xorred content in rax



 reseed endp


; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

ASMC Development / Re: Large integers and floats
« Last post by nidud on Today at 06:48:47 AM »
Added support for double::register arguments in 64-bit.


p1  proto syscall :oword, :oword, :oword

p2  proc syscall a1:oword, a2:oword, a3:oword
    p1(rsi::rdi, rcx::rdx, r9::r8)  ; no params set
    p1(rsi::rax, rcx::rdx, r9::r8)  ; rdi
    p1(rax::rax, rax::rax, rax::rax); all
p2  endp

   0:   55                      push   rbp
   1:   48 8b ec                mov    rbp,rsp
   4:   e8 21 00 00 00          call   0x2a
   9:   48 8b f8                mov    rdi,rax
   c:   e8 19 00 00 00          call   0x2a
  11:   4c 8b c0                mov    r8,rax
  14:   4c 8b c8                mov    r9,rax
  17:   48 8b d0                mov    rdx,rax
  1a:   48 8b c8                mov    rcx,rax
  1d:   48 8b f8                mov    rdi,rax
  20:   48 8b f0                mov    rsi,rax
  23:   e8 02 00 00 00          call   0x2a
  28:   c9                      leave 
  29:   c3                      ret   


p1  proto a1:dword
p2  proto a1:oword, a2:oword

p3  proc 1:oword, a2:oword
    p2(rdx::rcx, r9::r8)    ; no params set
    p2(p1(0), r9::r8)       ; rcx
    p2(rax::rcx, r9::r8)    ; rdx
    p2(rax::rax, r11::r10)  ; all
p3  endp

   0:   55                      push   rbp
   1:   48 8b ec                mov    rbp,rsp
   4:   48 83 ec 20             sub    rsp,0x20
   8:   e8 34 00 00 00          call   0x41
   d:   33 c9                   xor    ecx,ecx
   f:   e8 23 00 00 00          call   0x37
  14:   48 8b c8                mov    rcx,rax
  17:   e8 25 00 00 00          call   0x41
  1c:   48 8b d0                mov    rdx,rax
  1f:   e8 1d 00 00 00          call   0x41
  24:   48 8b c8                mov    rcx,rax
  27:   48 8b d0                mov    rdx,rax
  2a:   4d 8b c2                mov    r8,r10
  2d:   4d 8b cb                mov    r9,r11
  30:   e8 0c 00 00 00          call   0x41
  35:   c9                      leave 
  36:   c3                      ret   
RadAsm IDE Support / Re: Adding Dialog "FONT 8,"MS Sans Serif",400,0"
« Last post by blue_devil on Today at 06:09:07 AM »
After spending several hours on this issue; i have found that if i use my old templates from older versions of RadASM i got this buggy situation.
Today i made a dialog application and made a template for it. Guess what happen: no bugs no error.

From now on i wont use my old templates and will update them by creating newer versions using new RadASM
Game Development / Re: my 100% Assembly game development
« Last post by HSE on Today at 05:06:39 AM »
Pages: [1] 2 3 ... 10