home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2883 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.salford.ac.uk!ais-ck-012
  2. From: D.A.Reed@chemistry.salford.ac.uk (Doug Reed)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AGA-Assembly problems :(
  5. Date: Tue, 06 Feb 96 20:51:34 GMT
  6. Organization: University of Salford
  7. Message-ID: <4f8f0m$70g_004@salford.ac.uk>
  8. References: <rade-1601961437210001@cip-mac6.coli.uni-sb.de> <4elqnb$9dc@sunsystem5.informatik.tu-muenchen.de> <4esfue$klh@news.uni-c.dk>
  9. NNTP-Posting-Host: ais-ck-012.salford.ac.uk
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. In article <4esfue$klh@news.uni-c.dk>,
  13.    christ@apollo.roskildees.dk (Christian Hessenbruch) wrote:
  14. >: |> 
  15. >: |> 3. I've another question on the display modulos ($108, $10a). I 
  16. know I
  17. >: |> have to set them to -8
  18. >: |> when I display an AGA-pic (FMode=3). But why? How is this 
  19. calculated? What
  20. >: |> values do I need to display an 8-bpl-picture with FMode=0? (it 
  21. should
  22. >: |> work, but I couldn't work it out)
  23. >: with fmode = 0  it should be same values like on OCS!
  24. >: on fmode = 3 I always managed to get proper display with all modulos 
  25. 0.
  26. >: no -8 ... -8 sounds like having too much display dma!
  27. >
  28. >I belive the reason is that the bitmap lines has to be aligned
  29. >to 8 when using fmode 3, and as your lines are 40 the DMA will
  30. >adjust to 48 (6*8) and then you readjust by setting modulo -8.
  31.  
  32. The modulos should be exactly the same as in OCS/ECS even when in 
  33. FMODE=$xxx3, what should change is DDFSTOP this, if I remember 
  34. correctly, changes to $00b8 for a 40 byte lo-res screen. Also the start 
  35. of the screen display(+ every line) must be on an 8-byte boundary (use 
  36. CNOP 0,8 before the screen's asm-label and 8*n byte width screens).
  37.  
  38.     Doug. 
  39.