Jump to content

fox

Members
  • Content Count

    266
  • Joined

  • Last visited

Everything posted by fox

  1. so do I I think that one of Numen effects could be called "official vector demo". And Numen will be released at LL 2k2 (first weekend of August).
  2. Hvn is right. For perspective calculation (which involves division), I quickly compute fixed point 1/x (with help of some lookup tables) and then multiply.
  3. Let ^ be "raise to power". (a+b)^2=a^2+2*a*b+b^2 (a-b)^2=a^2-2*a*b+b^2 (a+b)^2-(a-b)^2=4*a*b a*b=((a+b)^2-(a-b)^2)/4 The good thing is that it works for any a and b, including negative. I wrote an article about this (with code examples) in a Polish disk magazine. And I use this method in my Vector engine, of course. fox PS. Polish football players suck!
  4. If talking about general multiplication routine, then: a * b = f(a+b) - f(a-b) where f(x) = x * x / 4 (using lookup table).
  5. fox

    XASM Question

    These statements simply don't comply xasm syntax. You should write: dta <start,>start note no space or dta a(start)
  6. fox

    XASM Question

    Ok, what byte use to fill ($FF or $00) ?
  7. fox

    XASM Question

    There are several problems like: at what address the cart starts, what size it is, etc. I don't think replacing orgs with -* dta is so problematic.
  8. a) sta temp :3 asl @ sub temp b) tax:lda mulBy7LookupTable,x
  9. fox

    XASM Question

    ORG $F000 LDA #$42 STA $80 :$F100-* DTA $FF LDA #$77 STA $81 greetz, fox
  10. Hi all, Now I don't think that hw regs abbreviations are as cool as when I invented them. But they may have a purpose: in 5200 there're same chips, but at different locations (e.g. POKEY is at $e800). I can easily implement an option to compile for 5200, which could help in porting 400/800/XL/XE software; if someone's interested. Please describe your problems in using Code-Genie. Hvn: you've forgotten that I participated in the CC65 project (or are you not aware of it?).
×
×
  • Create New...