Any Assemblers Out There???

Any Assemblers Out There???

Post by Acid Fe » Thu, 24 Sep 1998 04:00:00



    If there's any assemblers out there, I am trying to make a starfield(not 3D
or anything), just stars moving left to right, with a couple of different
planes, but the thing I can't seem to get is how to put the values into an
array? I'm new to assembler, but basically understand everything else, arrays
are the only thing that get me, should I use an array of strucs or just words?

     ThanX

 
 
 

Any Assemblers Out There???

Post by Q » Thu, 24 Sep 1998 04:00:00



Quote:> If there's any assemblers out there, I am trying to make a starfield(not
3D
>or anything), just stars moving left to right, with a couple of different
>planes, but the thing I can't seem to get is how to put the values into an
>array? I'm new to assembler, but basically understand everything else,
arrays
>are the only thing that get me, should I use an array of strucs or just

words?

well, if the goal is size, then use words, or bytes, or whatever
Make an C (++) program to calculate values and write binary data
to file, then include this file to your asm code

my_data label byte           ; or word / dword
include data.dat
------
data.dat file contains a couple of lines such as

db 012h, 0a3h,   .....
db 024h, 03dh,   .....
-----

then to address those bytes use

mov al, [my_data+di]         ; note to put appropr. segment into ds
 where DI is counter

and so on..
CU
--


 
 
 

Any Assemblers Out There???

Post by Acid Fe » Thu, 24 Sep 1998 04:00:00


Thanx, for the help.... :)

 
 
 

1. Microsoft Assembler to Borland Assembler...

Hi All,
   As mentioned I am trying to get the Quake 2 source code to compile
with  BCB and it seems I was on the right track.
I have hit a couple of hurdles during compilation.
1) I am getting an "E2451 error of Undefined Symbol <labelname>" in the
following lines of code
         mov Ljmptab[0*4], offset Lcase0 //<--- Over here
         mov Ljmptab[1*4], offset Lcase1
        mov Ljmptab[2*4], offset Lcase2
        mov Ljmptab[3*4], offset Lcase3
        mov Ljmptab[4*4], offset Lcase4
        mov Ljmptab[5*4], offset Lcase5
        mov Ljmptab[6*4], offset Lcase6
        mov Ljmptab[7*4], offset Lcase7

Lcase0-7 exist later on in the code as
Lcase0:

Can anyone see why I would be getting this error and how I can fix it.

2) Everything else seems to start compiling ok and then I get a
"F1013 Error writing output file".

What causes this second error?

Thanks,

Dominique.
http://www.DelphiGamer.com := for all your Object Pascal game
development needs;

2. Large GIF

3. print outs

4. pixel shaders in opengl

5. cut-outs

6. Feather Pattern Tutorial (my first!-)

7. MultiScan 15" monitor brown-outs

8. aligning the viewport

9. Cut-outs, antialisaing

10. cut-outs using alpha channels

11. PS4 - How to make good Cut Outs?

12. Adjusting colors in cut outs to match existing colors

13. does firegl 1000 have video outs?