Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tetris demo code freezes Saturn #20

Open
by20c opened this issue Mar 20, 2024 · 4 comments
Open

Tetris demo code freezes Saturn #20

by20c opened this issue Mar 20, 2024 · 4 comments
Labels
bug Something isn't working stabilizing Solved on latest, waiting for confirmation that the change works.

Comments

@by20c
Copy link

by20c commented Mar 20, 2024

tested on v0.1.9a, v0.1.9, v0.1.8, v0.1.5

This demo code freezes the program:

################ CSC258H1F Winter 2024 Assembly Final Project ##################
# This file contains our implementation of Tetris.
#
# Student 1: Name, Student Number
# Student 2: Name, Student Number (if applicable)
######################## Bitmap Display Configuration ########################
# - Unit width in pixels:       TODO
# - Unit height in pixels:      TODO
# - Display width in pixels:    TODO
# - Display height in pixels:   TODO
# - Base Address for Display:   0x10008000 ($gp)
##############################################################################

    .data
##############################################################################
# Immutable Data
##############################################################################
# The address of the bitmap display. Don't forget to connect it!
ADDR_DSPL:
    .word 0x10008000
# The address of the keyboard. Don't forget to connect it!
ADDR_KBRD:
    .word 0xffff0000

##############################################################################
# Mutable Data
##############################################################################

##############################################################################
# Code
##############################################################################
	.text
	.globl main

	# Run the Tetris game.
main:
    # Initialize the game

game_loop:
	# 1a. Check if key has been pressed
    # 1b. Check which key has been pressed
    # 2a. Check for collisions
	# 2b. Update locations (paddle, ball)
	# 3. Draw the screen
	# 4. Sleep

    #5. Go back to 1
    b game_loop
@1whatleytay
Copy link
Owner

Made more changes to the v0.1.9a branch. Can you download the build https://github.com/1whatleytay/saturn/releases/tag/app-v0.1.9a here again and tell me if it's better? The build should say "Updated 5 mins ago," it's not the same as the build last night.

@by20c
Copy link
Author

by20c commented Mar 20, 2024

Now it works and has no freezing for the demo!

@1whatleytay
Copy link
Owner

I pushed (another) update to v0.1.9a to make it a good amount faster. Hopefully it still works. If this version works too, I can merge these changes into the regular v0.1.9.

@by20c
Copy link
Author

by20c commented Mar 20, 2024

unfortunately, this version still freezes.
However, it is not as severe compared to when I first encountered the error

@1whatleytay 1whatleytay added bug Something isn't working stabilizing Solved on latest, waiting for confirmation that the change works. labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stabilizing Solved on latest, waiting for confirmation that the change works.
Projects
None yet
Development

No branches or pull requests

2 participants