Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. How much can you fit into 2k memory?

How much can you fit into 2k memory?

Scheduled Pinned Locked Moved The Lounge
graphicsjavascriptcomgame-devdata-structures
13 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

    The language is JavaScript. that of Mordor, which I will not utter here
    This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
    "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

    J B M CPalliniC L 8 Replies Last reply
    0
    • L Lost User

      Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

      The language is JavaScript. that of Mordor, which I will not utter here
      This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
      "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      And to think, these days we can't even fit an empty app into that using .NET.

      Jeremy Falcon

      B 1 Reply Last reply
      0
      • L Lost User

        Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

        The language is JavaScript. that of Mordor, which I will not utter here
        This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
        "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

        B Offline
        B Offline
        BillWoodruff
        wrote on last edited by
        #3

        Hail Squeezer !

        «There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

        1 Reply Last reply
        0
        • J Jeremy Falcon

          And to think, these days we can't even fit an empty app into that using .NET.

          Jeremy Falcon

          B Offline
          B Offline
          bogel bogel
          wrote on last edited by
          #4

          maybe this only slightly

          1 Reply Last reply
          0
          • L Lost User

            Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

            The language is JavaScript. that of Mordor, which I will not utter here
            This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
            "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

            M Offline
            M Offline
            Mark_Wallace
            wrote on last edited by
            #5

            Quote:

            There's Klingons on the starboard bow! Scrape 'em off, Jim!

            Who needs all the f@rt-@rsey textures and 3D mapping, if the gameplay is good?

            I wanna be a eunuchs developer! Pass me a bread knife!

            1 Reply Last reply
            0
            • L Lost User

              Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

              The language is JavaScript. that of Mordor, which I will not utter here
              This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
              "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              I am proud to say I am able to store 2048 bytes in 2 KiB of memory. :-D

              In testa che avete, signor di Ceprano?

              L 1 Reply Last reply
              0
              • CPalliniC CPallini

                I am proud to say I am able to store 2048 bytes in 2 KiB of memory. :-D

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                That's a beginning.

                The language is JavaScript. that of Mordor, which I will not utter here
                This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                1 Reply Last reply
                0
                • L Lost User

                  Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

                  The language is JavaScript. that of Mordor, which I will not utter here
                  This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                  "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  I've been getting nostaligic recently, I remember playing this on a 3.5k VIC 20.. Frogger for the Commodore VIC-20 / Commodore VC-20 - YouTube[^]

                  Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.

                  1 Reply Last reply
                  0
                  • L Lost User

                    Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

                    The language is JavaScript. that of Mordor, which I will not utter here
                    This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                    "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                    W Offline
                    W Offline
                    W Balboos GHB
                    wrote on last edited by
                    #9

                    The entire "Stoned" virus fits into the 512 byte boot sector (with a bit of room to spare). That's true craftsmanship[^].

                    Ravings en masse^

                    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                    "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                    1 Reply Last reply
                    0
                    • L Lost User

                      Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

                      The language is JavaScript. that of Mordor, which I will not utter here
                      This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                      "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                      Mike HankeyM Offline
                      Mike HankeyM Offline
                      Mike Hankey
                      wrote on last edited by
                      #10

                      Looks cool! Have thought about making an updated version of the ELF but with the new Harvard architecture it would not work so I would need to investigate other chips. But it would be fun.

                      New version: WinHeist Version 2.2.2 Beta
                      I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!

                      L 1 Reply Last reply
                      0
                      • Mike HankeyM Mike Hankey

                        Looks cool! Have thought about making an updated version of the ELF but with the new Harvard architecture it would not work so I would need to investigate other chips. But it would be fun.

                        New version: WinHeist Version 2.2.2 Beta
                        I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        It really depends on what you want to do. If you skip some of the oldfashioned stuff, you can build a very compact Elf with not very many parts. If you want nostalgia, then the Elf is also great: The original Elf from 1976.[^] I'm currently working on such a board which is later intended to be the master processor that coordinates up to 8 worker processors. It does not have much I/O of its own, but for starters it is going to get a simple software controlled (bit banged) RS232 to hook up a notebook with terminal emulation.

                        The language is JavaScript. that of Mordor, which I will not utter here
                        This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                        "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                        Mike HankeyM 1 Reply Last reply
                        0
                        • L Lost User

                          It really depends on what you want to do. If you skip some of the oldfashioned stuff, you can build a very compact Elf with not very many parts. If you want nostalgia, then the Elf is also great: The original Elf from 1976.[^] I'm currently working on such a board which is later intended to be the master processor that coordinates up to 8 worker processors. It does not have much I/O of its own, but for starters it is going to get a simple software controlled (bit banged) RS232 to hook up a notebook with terminal emulation.

                          The language is JavaScript. that of Mordor, which I will not utter here
                          This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                          "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                          Mike HankeyM Offline
                          Mike HankeyM Offline
                          Mike Hankey
                          wrote on last edited by
                          #12

                          The problem with the Harvard architecture is that the flash and ram are in separate sections/partitions/memory space so to be able to program it dynamically is a problem. I would have to go to a chip with a different architecture. It can be done I just don't have the tools to do it.

                          New version: WinHeist Version 2.2.2 Beta
                          I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!

                          1 Reply Last reply
                          0
                          • L Lost User

                            Remember the sprites we encoded last week? I have been debugging, optimizing and squeezing and now I'm ready to start with the main game loop. So far I have squeezed all this into 2k memory: - assembly routines for drawing sprites and strings - a random number generator - interrupt routines for the graphics chip - the video buffer and the stack - sprites and text strings - the first two screens to select the difficulty and mission details Here[^] you can see a test with the two sprites we made in the emulator and parts of my improvised development environment and the emulator.

                            The language is JavaScript. that of Mordor, which I will not utter here
                            This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                            "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                            M Offline
                            M Offline
                            MuThink
                            wrote on last edited by
                            #13

                            An Apollo programmer once told me 2K is what they had to work with to get to the Moon and back. But hey, I do know how to strip a C "Hello World" program down to a 2K file... So, haven't we have progressed rather far in the last 45 years?

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups