flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
MHajduk
Something on this theme: Macros to choose target CPU
![]() |
|||
![]() |
|
0.1
thanks MHajduk!
I think while using these macros i will have to specify the required cpu type. which will be based on the latest instruction i use, right? but the problem is i think it is too much trouble to remember the instruction and where it is supported. would not it be nice if fasm would guess the minimum cpu needed. and would add a code to check for it as well. _________________ Code: o__=- ) (\ /\ |
|||
![]() |
|
MHajduk
You could use CPUID instruction for determinig CPU type (for Pentiums and higher, if I remember correctly) and simulation of this instruction for older processors CPUID (not really) 80286 | Tomasz's code.
![]() |
|||
![]() |
|
0.1
wow! that's a bit too much!
![]() similar to hand coding instructions instead of using fasm IMHO ![]() _________________ Code: o__=- ) (\ /\ |
|||
![]() |
|
vid
Quote: would not no, it wouldn't. - extra unwanted code - if you want, you can add it yourself - what to do if check fails? system-dependent code needed - not every instruction is meant to be executed on current CPU etc... |
|||
![]() |
|
mattst88
0.1 wrote: it be nice if fasm would guess the minimum cpu needed. and would add a code to check for it as well. That would kind of go against the idea of it being the flat assembler. _________________ My x86 Instruction Reference -- includes SSE, SSE2, SSE3, SSSE3, SSE4 instructions. Assembly Programmer's Journal |
|||
![]() |
|
rugxulo
Just use ONLY8086.INC, and your code will run anywhere.
![]() |
|||
![]() |
|
0.1
why my request violates the flat part
of the flatassembler? please explain. _________________ Code: o__=- ) (\ /\ |
|||
![]() |
|
vid
It doesn't violate "flat" part (IMO), but it violates idea of flat assembler (and idea of any assembler...)
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.