Welcome, Guest. Please login or register.

Author Topic: Assembler (68k) help (about dc pseudo op)  (Read 25993 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show all replies
Re: Assembler (68k) help (about dc pseudo op)
« on: January 13, 2003, 04:03:39 PM »
Hardware reference manual:
http://www.amigarealm.com/computing/nkb12.htm
[not complete but useful]

Programming resources, tutorials etc:
http://www.amigarealm.com/resources/coding.htm

Skippy
Squareroot of all fluffiness.
 

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show all replies
Re: Assembler (68k) help (about dc pseudo op)
« Reply #1 on: January 13, 2003, 05:55:53 PM »
@Pete,

You do exactly the same as me.

Extracts of my copper:
      Section   Misc,Code_C

gfxlib      dc.b   "graphics.library",0
      even
Doslib      dc.b   "dos.library",0
      even
stsv:      ds.l   1
      even

      rsreset
sysdma:      rs.w   1
sysint:      rs.w   1
sysirq:      rs.w   1
sysadk:      rs.w   1      
coppersave1   rs.l   1
coppersave2   rs.l   1
viewsave   rs.l   1
gfxbase:   rs.l   1
sysautovecs:   rs.l   6   
sysdata:   ds.w   __rs

COUNTER:   dc.B   0      fade one every other frame
      even
-----snipped
      Section   Copper,Data_C

; Long frame copperlist

copper1:dc.l   $01009200
   dc.l   $008e2981,$009029c1
   dc.l   $00920038,$009400d0
   dc.l   $01080000,$010a0000
spts:   dc.l   $01200000,$01220000,$01240000,$01260000,$01280000,$012a0000,$012c0000,$012e0000
   dc.l   $01300000,$01320000,$01340000,$01360000,$01380000,$013a0000,$013c0000,$013e0000
cols:   dc.l   $01800000,$01820fff,$01840000,$01860000,$01880000,$018a0000,$018c0000,$018e0000
   dc.l   $01900000,$01920000,$01940000,$01960000,$01980000,$019a0000,$019c0000,$019e0000
bplane4:dc.l   $00e00000,$00e20000,$00e40000,$00e60000,$00e80000,$00ea0000,$00ec0000,$00ee0000
   dc.l   $fe0ffffe,$01820000
Copper2:dc.l   $fffffffe,$fffffffe

Copper3:dc.w   $0100,%1100001000000100    HiRes, Interlace,1 plane
addr1:   dc.l   $00800000,$00820000
   dc.l   $008e2981,$009029c1
   dc.l   $0092003c,$009400d4
   dc.l   $01080050,$010a0050
   dc.l   $01200000,$01220000,$01240000,$01260000,$01280000,$012a0000,$012c0000,$012e0000
   dc.l   $01300000,$01320000,$01340000,$01360000,$01380000,$013a0000,$013c0000,$013e0000
colsa:   dc.l   $01800000,$01820122,$01840767,$0186058b
   dc.l   $0188069c,$018a08be,$018c0d99,$018e0bce
   dc.l   $01900a98,$01920ba9,$01940caa,$01960cbb
   dc.l   $01980dcc,$019a0ecc,$019c0fee,$019e0fff
bplanea:dc.l   $00e00000,$00e20000,$00e40000,$00e60000
   dc.l   $00e80000,$00ea0000,$00ec0000,$00ee0000
   dc.l   $fffffffe,$fffffffe

Copper4:dc.w   $0100,%1100001000000100    HiRes, Interlace,1 plane
addr2:   dc.l   $00800000,$00820000
   dc.l   $008e2981,$009029c1
   dc.l   $0092003c,$009400d4
   dc.l   $01080050,$010a0050
   dc.l   $01200000,$01220000,$01240000,$01260000,$01280000,$012a0000,$012c0000,$012e0000
   dc.l   $01300000,$01320000,$01340000,$01360000,$01380000,$013a0000,$013c0000,$013e0000
colsb:   dc.l   $01800000,$01820122,$01840767,$0186058b
   dc.l   $0188069c,$018a08be,$018c0d99,$018e0bce
   dc.l   $01900a98,$01920ba9,$01940caa,$01960cbb
   dc.l   $01980dcc,$019a0ecc,$019c0fee,$019e0fff
bplaneb:dc.l   $00e00000,$00e20000,$00e40000,$00e60000,$00e80000,$00ea0000,$00ec0000,$00ee0000
   dc.l   $fffffffe,$fffffffe
;000,122,767,58b,69c,8be,d99,bce,a98,ba9,caa,cbb,dcc,fee,fff

      Section   Picture,Data_C

Screen1:dcb.b   (640*256)/8,$00
   even        
Screen2:incbin   dh0:storage/sc/-data-/start2.raw      960*27
   even        
Blank   dcb.l   16,0
   even
font2:   incbin   dh0:storage/sc/-data-/13*8.raw      960*27
   even
mt_data:incbin   dh0:storage/music/xmas.mod
      END
Squareroot of all fluffiness.
 

Offline Skippy

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 710
    • Show all replies
Re: Assembler (68k) help (about dc pseudo op)
« Reply #2 on: January 13, 2003, 06:39:45 PM »
I've just finished archiving over 125+ floppy disks of mine/friends sourcecode dating back to 1992.

These disks also include tutorial code from big name developers from 1988 =>, ie: bullfrog.

Currently all in .lha format on my a1200s' hard-drive.

When I've got time I'll upload some disks to my website for you.

Skippy
Squareroot of all fluffiness.