flat assembler
Message board for the users of flat assembler.

Index > Search found 404 matches

Author Message
Topic: [CALM] Error when stringify negative number
zhak

Replies: 3
Views: 5248

Post Forum: Macroinstructions   Posted: 05 May 2021, 23:04   Subject: [CALM] Error when stringify negative number
Thank you for the tip. This helped a lot.
Topic: [CALM] Error when stringify negative number
zhak

Replies: 3
Views: 5248

Post Forum: Macroinstructions   Posted: 05 May 2021, 22:04   Subject: [CALM] Error when stringify negative number

calminstruction (name) tostring text&
local value
transform text
compute value, +text
arrange value, value
stringify value
publish name, value
end calminst ...
Topic: [fasmg, CALM] any tips for macros optimization?
zhak

Replies: 6
Views: 7981

Post Forum: Macroinstructions   Posted: 04 May 2021, 14:30   Subject: [fasmg, CALM] any tips for macros optimization?
Tomasz, can you please give some tips for writing more optimal calminstructions and macros in general (if its optimization can have any overal impact)
For example,
- is it better to use long expres ...
Topic: [fasmg, CALM] case insensitive instruction with dot in name
zhak

Replies: 2
Views: 4558

Post Forum: Macroinstructions   Posted: 29 Apr 2021, 13:34   Subject: [fasmg, CALM] case insensitive instruction with dot in name
Ah, I see. I tried wrapping all in "namespace", obviously without success. Thanks a lot!
Topic: [fasmg, CALM] case insensitive instruction with dot in name
zhak

Replies: 2
Views: 4558

Post Forum: Macroinstructions   Posted: 29 Apr 2021, 12:31   Subject: [fasmg, CALM] case insensitive instruction with dot in name
How to correctly define a case insensitive instruction which contains a dot in the middle, like A64 "B.<cond> <label>"?

calminstruction B?.EQ? operands*&

gives "Er ...
Topic: [fasmg, calm] what happens if local symbol is defined twice?
zhak

Replies: 2
Views: 4494

Post Forum: Macroinstructions   Posted: 28 Apr 2021, 14:39   Subject: [fasmg, calm] what happens if local symbol is defined twice?
Looks like no, as

calminstruction inst
local sym

arrange sym, '1'
asmcmd =display sym

local sym
asmcmd =display sym
end calminstruction

just displays two '1's
Topic: [fasmg, calm] what happens if local symbol is defined twice?
zhak

Replies: 2
Views: 4494

Post Forum: Macroinstructions   Posted: 28 Apr 2021, 14:31   Subject: [fasmg, calm] what happens if local symbol is defined twice?
Maybe a dumb question, but I do not completely understand what happens inside when I define the same local symbol many times.


calminstruction inst
local sym, sym
end calminstruction


Do I ...
Topic: [solved] How to make local data in a macro?
zhak

Replies: 6
Views: 7643

Post Forum: Macroinstructions   Posted: 15 Mar 2021, 10:10   Subject: [solved] How to make local data in a macro?
Worked like a charm! Thanks!
Topic: [solved] How to make local data in a macro?
zhak

Replies: 6
Views: 7643

Post Forum: Macroinstructions   Posted: 15 Mar 2021, 08:59   Subject: [solved] How to make local data in a macro?
I created a macro to encrypt a block of data with RC4.


macro rc4 block_start, count {
local K, S, i, j, Si, Sj, Ki, x, y

K db 0x7c,0x4e,0x03,0x04,0x55,0x05,0x09,0x07,\
...
Topic: FASMARM v1.44 - Cross assembler for ARM CPUs
zhak

Replies: 647
Views: 824161

Post Forum: Non-x86 architectures   Posted: 17 Feb 2021, 11:09   Subject: FASMARM v1.44 - Cross assembler for ARM CPUs
Thanks for the workaround, revolution. Source doesn't compile with the latest fasm, but I found 1.73.04 build somewhere on the internet and it worked fine.
Topic: FASMARM v1.44 - Cross assembler for ARM CPUs
zhak

Replies: 647
Views: 824161

Post Forum: Non-x86 architectures   Posted: 16 Feb 2021, 22:02   Subject: FASMARM v1.44 - Cross assembler for ARM CPUs
flat assembler for ARM version 1.43 (built on fasm 1.73.02)

There seems to be something wrong with ADRP instruction.

processor cpu64_v8
code64

mrs x9, mpidr_el1
...
Topic: Q on VGA font table location
zhak

Replies: 3
Views: 9917

Post Forum: DOS   Posted: 08 Jan 2019, 14:05   Subject: Q on VGA font table location
Each entry in interrupt table is 4 bytes. To get offset to entry number 43h you obviously should multiply it by entry size
Topic: enum directive for fasmg
zhak

Replies: 0
Views: 4076

Post Forum: Macroinstructions   Posted: 17 Jan 2018, 21:19   Subject: enum directive for fasmg

macro ENUM? name
local enumitems
enumitems equ
macro end?.enum?!
purge ?, end?.enum?
end macro
macro ?! line&
match =end? =enum?, line
match items, enumitems
...
Topic: EFI programming
zhak

Replies: 5
Views: 7416

Post Forum: Main   Posted: 12 Jan 2018, 14:35   Subject: EFI programming
In a couple of words, UEFI firmware replaces BIOS but provides BIOS emulation for compatibility purposes. It understands PE32+ file format for executable images and FAT file systems. You can add suppo ...
Topic: EFI programming
zhak

Replies: 5
Views: 7416

Post Forum: Main   Posted: 09 Jan 2018, 16:08   Subject: EFI programming
What is EFI boot in your understanding?
Topic: ebc.asm - EBC Assembler for fasmg
zhak

Replies: 2
Views: 9079

Post Forum: Projects and Ideas   Posted: 01 Jan 2018, 23:40   Subject: ebc.asm - EBC Assembler for fasmg
Yeah, I used his macros for some time, but was not completely satisfied with what features they provide. Mine are independent. However, I use slightly modified utf8 to wide string conversion macro fro ...
Topic: ebc.asm - EBC Assembler for fasmg
zhak

Replies: 2
Views: 9079

Post Forum: Projects and Ideas   Posted: 01 Jan 2018, 21:58   Subject: ebc.asm - EBC Assembler for fasmg
Hi guys! In the beginning of the new 2018 year I'd like to share with you my project I've been recently working on: ebc.asm

It is a set of macroinstructions, structures, and constants defining full ...
Topic: Check if number fits 16 bits (signed or unsigned)
zhak

Replies: 2
Views: 4593

Post Forum: Main   Posted: 19 Dec 2017, 21:37   Subject: Check if number fits 16 bits (signed or unsigned)
Indeed, it's so obvious. I just overthought it too much. Thanks
Topic: Check if number fits 16 bits (signed or unsigned)
zhak

Replies: 2
Views: 4593

Post Forum: Main   Posted: 19 Dec 2017, 21:02   Subject: Check if number fits 16 bits (signed or unsigned)
How can I optimize the following line (for fasmg):

if (num > 0 & num < 65536) | (num < 32768 & num >= -32768)


P.S. not knowing num bit length (num can be 32 ...
Topic: break macro definition makes fasm g freeze
zhak

Replies: 5
Views: 10297

Post Forum: Compiler Internals   Posted: 26 Oct 2017, 07:53   Subject: break macro definition makes fasm g freeze
Thanks a lot!
 
Page 1 of 21 Goto page 1, 2, 3 ... 19, 20, 21  Next
All times are GMT.
Jump to:  

Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.