flat assembler
Message board for the users of flat assembler.
Index
> Main > instruction available or not |
Author |
|
MHajduk 10 Dec 2007, 12:21
Something on this theme: Macros to choose target CPU
|
|||
10 Dec 2007, 12:21 |
|
0.1 10 Dec 2007, 12:26
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__=- ) (\ /\ |
|||
10 Dec 2007, 12:26 |
|
MHajduk 10 Dec 2007, 12:31
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.
|
|||
10 Dec 2007, 12:31 |
|
0.1 10 Dec 2007, 12:35
wow! that's a bit too much!
similar to hand coding instructions instead of using fasm IMHO _________________ Code: o__=- ) (\ /\ |
|||
10 Dec 2007, 12:35 |
|
vid 10 Dec 2007, 13:45
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... |
|||
10 Dec 2007, 13:45 |
|
mattst88 11 Dec 2007, 23:03
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 |
|||
11 Dec 2007, 23:03 |
|
rugxulo 12 Dec 2007, 00:48
Just use ONLY8086.INC, and your code will run anywhere.
|
|||
12 Dec 2007, 00:48 |
|
0.1 12 Dec 2007, 05:20
why my request violates the flat part
of the flatassembler? please explain. _________________ Code: o__=- ) (\ /\ |
|||
12 Dec 2007, 05:20 |
|
vid 12 Dec 2007, 11:06
It doesn't violate "flat" part (IMO), but it violates idea of flat assembler (and idea of any assembler...)
|
|||
12 Dec 2007, 11:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.