User Tools

Site Tools


projects

wcp1 (due 20250129)
abc0 (due 20250205)
btt0 (due 20250205)
pct0 (bonus; due 20250205)
pct1 (bonus; due 20250205)
pct2 (due 20250205)
wcp2 (due 20250205)
mtb0 (due 20250212)
pct3 (bonus; due 20250212)
wcp3 (due 20250212)
mtb1 (due 20250219)
pct4 (due 20250219)
wcp4 (due 20250219)
pct5 (bonus; due 20250226)
wcp5 (due 20250226)
mtb2 (due 20250227)
dap0 (due 20250305)
gfo0 (due 20250305)
pct6 (due 20250305)
wcp6 (due 20250305)
dap1 (due 20250312)
pct7 (bonus; due 20250312)
wcp7 (due 20250312)
bwp1 (bonus; due 20250326)
dap2 (due 20250326)
pct8 (due 20250326)
wcp8 (due 20250326)
mtb3 (due 20250402)
pct9 (bonus; due 20250402)
wcp9 (due 20250402)
gfo1 (due 20250409)
pctA (due 20250409)
pnc0 (due 20250409)
wcpA (due 20250409)
pctB (bonus; due 20250416)
pnc1 (due 20250416)
wcpB (due 20250416)
pctC (due 20250423)
pnc2 (due 20250423)
wcpC (due 20250423)
pctD (bonus; due 20250430)
wcpD (bonus; due 20250430)
gfo2 (due 20250507)
pctE (bonus; due 20250507)
wcpE (bonus; due 20250507)
EoCE (due 20250515)
haas:spring2025:comporg:projects:mtb3

Corning Community College

CSCS2650 Computer Organization

PROJECT: Move The Block (MTB3)

OBJECTIVE

The moment is finally here: with your implemented debugging subroutines at hand, adapt your hand-written assembly pong into a playable breakout game, with brick field.

EDIT

You will want to go here to edit and fill in the various sections of the document:

Breakout

brick field

manifestation in memory

When looking at the bricks in breakout, it makes sense to see them as an array, which are a very simple concept in assembly, as it is just a contiguous chunk in memory. That said, when initializing our block field, we are just initializing an area in memory with specific values to access later on.
When looking to initialize our memory, we have to consider everything we may use for our blocks, which may be just an xpos, ypos, and active flag, and give enough space to hold everything. There are multiple ways of going about this depending to the constraints you have; if you are looking for space efficiency, you may want to pack your data into one word each, then decoding later when we need to use it; if you are looking for ease of use, you may just want to give each attribute its own word in memory. To take the latter approach, you will want to initialize each attribute based on a starting position, then move that starting position along to affect each block. This may look like:

_init:
mov R0, 0x00000000 ; memaddr
mov R1, 1          ; activeflag
mov R2, 0          ; xpos
mov R3, 0          ; ypos
_brickinitloop
mov  [R0],   R1
mov  [R0+1], R2 
mov  [R0+2], R3
iadd R0,     3
iadd R2,     BlockWidth
; add some sort of break condition
jmp  _brickinitloop

logic for accessing

If you gave each attribute of the brick its own memory address (for example active flag, xpos, ypos) we can access them by going back to that address. If you used 0x00000000 as your starting address for defining the brick field for example, you would set a register to that memory address and then read from it and its following addresses as such:

     mov  R0,        0x00000000  ; move starting address into R0

_brick_activeflag:
     mov  R1,        [R0]        ; load the value in the active flag memory address for the chosen brick
     ieq  R1,        1           ; display the brick if the flag is active
     jt   R1,        _display_brick
     ; repeat loop if not active

Similarly when displaying the bricks we can use [R0+1] and [R0+2]. Since R0 is the memory address of our brick and each brick has three addresses (active flag, xpos, ypos), [R0] is the active flag [R0+1] is the xpos and [R0+2] is the ypos.

 

SUBMISSION

To be successful in this project, the following criteria (or their equivalent) must be met:

  • Project must be submit on time, by the deadline.
    • Late submissions will lose 33% credit per day, with the submission window closing on the 3rd day following the deadline.
  • Executed programs must display in a manner similar to provided output
    • output formatted, where applicable, must match that of project requirements
  • Processing must be correct based on input given and output requested
  • Output, if applicable, must be correct based on values input
  • Code must be nicely and consistently indented
  • Code must be consistently written, to strive for readability from having a consistent style throughout
  • Code must be commented
    • Any “to be implemented” comments MUST be removed
      • these “to be implemented” comments, if still present at evaluation time, will result in points being deducted.
      • Sufficient comments explaining the point of provided logic MUST be present
  • No global variables (without instructor approval), no goto statements, no calling of main()!
  • Track/version the source code in your lab46 semester repository
  • Submit a copy of your source code to me using the submit tool by the deadline.

Submit Tool Usage

Let's say you have completed work on the project, and are ready to submit, you would do the following:

lab46:~/src/SEMESTER/DESIG/PROJECT$ submit DESIG PROJECT file1 file2 file3 ... fileN

You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.

RUBRIC

I'll be evaluating the project based on the following criteria:

234:mtb3:final tally of results (234/234)
*:mtb3:submitted handwritten assembly [26/26]
*:mtb3:submitted Vircon32 cartridge [26/26]
*:mtb3:submitted XML and build script [26/26]
*:mtb3:brickfield displayed and collisions work [26/26]
*:mtb3:day 1 snapshot of progress to class discord [26/26]
*:mtb3:day 2 snapshot of progress to class discord [26/26]
*:mtb3:day 3 final effort demoed to class discord [26/26]
*:mtb3:cartridge is NOT added to repository [26/26]
*:mtb3:committed project related changes to semester repo [26/26]

Pertaining to the collaborative authoring of project documentation

  • each class member is to participate in the contribution of relevant information and formatting of the documentation
    • minimal member contributions consist of:
      • near the class average edits (a value of at least four productive edits)
      • near the average class content change average (a value of at least 1024 bytes (absolute value of data content change))
      • no zero-sum commits (adding in one commit then later removing in its entirety for the sake of satisfying edit requirements)
    • adding and formatting data in an organized fashion, aiming to create an informative and readable document that anyone in the class can reference
    • content contributions will be factored into a documentation coefficient, a value multiplied against your actual project submission to influence the end result:
      • no contributions, co-efficient is 0.50
      • less than minimum contributions is 0.75
      • met minimum contribution threshold is 1.00

Additionally

  • Solutions not abiding by spirit of project will be subject to a 50% overall deduction
  • Solutions not utilizing descriptive why and how comments will be subject to a 25% overall deduction
  • Solutions not utilizing indentation to promote scope and clarity or otherwise maintaining consistency in code style and presentation will be subject to a 25% overall deduction
  • Solutions not organized and easy to read (assume a terminal at least 90 characters wide, 40 characters tall) are subject to a 25% overall deduction
  • Individuals who have not participated at least 50% will be subject to a 50% overall deduction.
haas/spring2025/comporg/projects/mtb3.txt · Last modified: 2025/03/10 15:19 by 127.0.0.1