flat assembler
Message board for the users of flat assembler.
![]() Goto page 1, 2 Next |
Author |
|
revolution 08 Jun 2024, 08:31
Do you want to create compatible source code that VS can use, i.e. convert fasm assembly source to MASM assembly source?
If so you can use PREPSRC.ASM (in the TOOLS folder) to get the raw source after preprocessing. Then all the macros are expanded.. Then use sed, or something similar, to massage the output into MASM syntax. |
|||
![]() |
|
Overclick 08 Jun 2024, 12:03
How to order PREPSRC.ASM?
|
|||
![]() |
|
Overclick 08 Jun 2024, 16:15
PREPSRC.EXE Source.asm Result.inc
error: input file is not a recognized assembly information format. |
|||
![]() |
|
revolution 08 Jun 2024, 16:22
I think you need to pass the .fas file.
|
|||
![]() |
|
bitRAKE 08 Jun 2024, 16:31
Overclick wrote: I'm looking for best solution to migrate FASM projects to VisualStudio. |
|||
![]() |
|
revolution 08 Jun 2024, 16:42
Perhaps awk is a better choice than sed.
But nevertheless, if VS doesn't support assembly then the whole plan is useless. ![]() |
|||
![]() |
|
Overclick 08 Jun 2024, 16:54
I did, converted to .inc but what to do next? A lot of if-else-end if , virtual etc
What exactly I have to convert or replace on it?
|
||||||||||
![]() |
|
Overclick 08 Jun 2024, 16:57
bitRAKE wrote:
|
||||||||||
![]() |
|
revolution 08 Jun 2024, 17:02
Overclick wrote: What exactly I have to convert or replace on it? But virtual probably isn't a MASM thing. ![]() |
|||
![]() |
|
Overclick 08 Jun 2024, 17:05
revolution wrote:
sounds like dead end ![]() |
|||
![]() |
|
bitRAKE 08 Jun 2024, 18:36
ASSUME is the closest MASM gets to VIRTUAL.
If a custom build script is what passes for "support" then just write a VS build script for fasm. Look in something like ... C:\Program Files (x86)\Microsoft Visual Studio\2022\[Edition]\Common7\IDE\ItemTemplates\ ... *.vstemplate |
|||
![]() |
|
Overclick 08 Jun 2024, 19:07
Quote:
The code is not from template, I found example in web and copy-pasted to check. It is built-in support in just virgin VS installed yesterday. That "customization" provided by MS itself with debug, steps, safe exceptions and etc features. If it that easy for FASM as you say then show me example.
|
||||||||||
![]() |
|
bitRAKE 08 Jun 2024, 19:48
Debugger integration would require FAS -> PDB tool. The other things are possible with creation of XML property page.
|
||||||||||
![]() |
|
Overclick 09 Jun 2024, 06:23
I found instruction for setup MASM there:
https://programminghaven.home.blog/2020/02/16/setup-an-assembly-project-on-visual-studio-2019/ bitRAKE, I really hope you (or someone, or Tomasz hisself) help to do something similar for FASM |
|||
![]() |
|
bitRAKE 09 Jun 2024, 19:36
VS is an enterprise class tool with the slowness to match. The only benefit I see would be to integrate fasmg in the most general fashion to support learning and very complex build scenarios. This would require demultiplexing to desired targets. Certainly non-trivial - I'll need to give it more thought.
|
|||
![]() |
|
Overclick 09 Jun 2024, 20:04
Any other idea to sign/validate my fasm-projects to let it be allowed for Microsoft Store? Seems I need to try do it in masm from scratch
![]() |
|||
![]() |
|
bitRAKE 09 Jun 2024, 23:17
Code: @echo off setlocal :: Usage if "%~1"=="" ( echo Usage: sign.cmd [debug^|release] path_to_binary exit /b 1 ) set MODE=%~1 set FILEPATH=%~2 :: Path to signtool.exe, adjust as necessary set SIGNTOOL="C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" :: Check if signtool exists if not exist %SIGNTOOL% ( echo signtool.exe not found. exit /b 1 ) :: Proceed based on mode if /I "%MODE%"=="debug" ( echo Debug mode: Signing with self-signed certificate... :: Ensure you have created a self-signed certificate named MySelfSignedCert.pfx %SIGNTOOL% sign /f MySelfSignedCert.pfx /p password /fd SHA256 /td SHA256 /tr http://timestamp.digicert.com /v %FILEPATH% ) else if /I "%MODE%"=="release" ( echo Release mode: Signing with CA certificate... :: Assuming you have a CA certificate named MyCACert.pfx %SIGNTOOL% sign /f MyCACert.pfx /p password /fd SHA256 /td SHA256 /tr http://timestamp.digicert.com /v %FILEPATH% ) else ( echo Invalid mode. Use 'debug' or 'release'. exit /b 1 ) echo Signing completed. endlocal For testing you can create a self-signed cert with: Code: makecert -n "CN=MyTestCertificate" -r -sv MyTestCertificate.pvk MyTestCertificate.cer pvk2pfx -pvk MyTestCertificate.pvk -spc MyTestCertificate.cer -pfx MyTestCertificate.pfx -po YourPFXPassword |
|||
![]() |
|
Overclick 10 Jun 2024, 10:49
Microsoft Store seems to certificate itself, but Verification process need to be passed. Question: How to pass Verification process? To check it works I need to pass it localy first, but it crashes my app without results. Requirenments says I need VS, that means I need compile in VS right?
|
|||
![]() |
|
bitRAKE 10 Jun 2024, 13:06
Overclick wrote: Requirenments says I need VS |
|||
![]() |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.