Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. I'm hacking on a Wonderswan game now, and it's got a fun CPU:

I'm hacking on a Wonderswan game now, and it's got a fun CPU:

Pianificato Fissato Bloccato Spostato Senza categoria
8 Post 2 Autori 0 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
    Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
    Foone🏳️‍⚧️
    scritto su ultima modifica di
    #1

    I'm hacking on a Wonderswan game now, and it's got a fun CPU:
    An NEC V30, which is an 80186 clone. So this is basically an 186 portable!

    Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
    • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

      I'm hacking on a Wonderswan game now, and it's got a fun CPU:
      An NEC V30, which is an 80186 clone. So this is basically an 186 portable!

      Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
      Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
      Foone🏳️‍⚧️
      scritto su ultima modifica di
      #2

      eww. they set the stack segment to 0000 so they can use zero-page arguments without actually using the stack.

      and this code works by setting SP to the target work ram and using PUSH to put new graphics into it

      Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
      • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

        eww. they set the stack segment to 0000 so they can use zero-page arguments without actually using the stack.

        and this code works by setting SP to the target work ram and using PUSH to put new graphics into it

        Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
        Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
        Foone🏳️‍⚧️
        scritto su ultima modifica di
        #3

        "A notable consequence of this is that, unlike most other platforms, non-power-of-two ROM images are expected to be padded to the last bank downwards, rather than the first bank upwards; for example, a 768 KiB ROM image will be padded to 1 MiB by appending 256 KiB of padding data to the beginning, rather than the end of the ROM. "

        THE FUCK?

        Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
        1
        • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

          "A notable consequence of this is that, unlike most other platforms, non-power-of-two ROM images are expected to be padded to the last bank downwards, rather than the first bank upwards; for example, a 768 KiB ROM image will be padded to 1 MiB by appending 256 KiB of padding data to the beginning, rather than the end of the ROM. "

          THE FUCK?

          Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
          Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
          Foone🏳️‍⚧️
          scritto su ultima modifica di
          #4

          it's also x86 with bankswitching. which is fun

          Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
          • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

            it's also x86 with bankswitching. which is fun

            Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
            Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
            Foone🏳️‍⚧️
            scritto su ultima modifica di
            #5

            this code uses the DI register to determine the source of a copy.

            that's just backwards

            Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
            • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

              this code uses the DI register to determine the source of a copy.

              that's just backwards

              Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
              Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
              Foone🏳️‍⚧️
              scritto su ultima modifica di
              #6

              oh god, they're using a jmp table to run this function in reverse ordered chunks

              Foone🏳️‍⚧️undefined 1 Risposta Ultima Risposta
              • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

                oh god, they're using a jmp table to run this function in reverse ordered chunks

                Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
                Foone🏳️‍⚧️undefined Questo utente è esterno a questo forum
                Foone🏳️‍⚧️
                scritto su ultima modifica di
                #7

                when displaying a dialog, the first thing DoGraphicsFunc does is call ClearRAM. Then it calls function 10, which begins by calling ClearRAM!

                YOU CALLED IT TWICE FOR NO REASON

                Oblomovundefined 1 Risposta Ultima Risposta
                • Oblomovundefined Oblomov ha condiviso questa discussione
                • Foone🏳️‍⚧️undefined Foone🏳️‍⚧️

                  when displaying a dialog, the first thing DoGraphicsFunc does is call ClearRAM. Then it calls function 10, which begins by calling ClearRAM!

                  YOU CALLED IT TWICE FOR NO REASON

                  Oblomovundefined Questo utente è esterno a questo forum
                  Oblomovundefined Questo utente è esterno a questo forum
                  Oblomov
                  scritto su ultima modifica di
                  #8

                  @foone it's to ensure it's extra clear, 99.99% germs removed.

                  1 Risposta Ultima Risposta
                  Rispondi
                  • Topic risposta
                  Effettua l'accesso per rispondere
                  • Da Vecchi a Nuovi
                  • Da Nuovi a Vecchi
                  • Più Voti


                  • Accedi

                  • Accedi o registrati per effettuare la ricerca.
                  • Primo post
                    Ultimo post