Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
Parms'n'Triangles (Assembler)   [2022]

Parms'n'Triangles (Assembler) Released by :
Artline Designs [web]

Release Date :
28 December 2022

Type :
C64 256b Intro

AKA :
Parallelograms and Triangles

Released At :
Vintage Computing Christmas Challenge 2022

Achievements :
Mixed Graphics Competition at Vintage Computing Christmas Challenge 2022 :  #21

User rating:awaiting 8 votes (7 left)   See votestatistics

Credits :
Code .... Frostbyte of Artline Designs

Download :

Look for downloads on external sites:
 Pokefinder.org


Summary
Submitted by Frostbyte on 29 December 2022
/** 
    Parallelograms'n'Triangles drawing method. Draws two overlapping diagonal
    parallelograms and two vertical triangles.
    - Routine: 54 bytes
    - Filesize: 56 bytes
    - Started with SYS931
*/

//    Where to start drawing the parallelograms and triangles
.const par1_start    = $040a
.const par2_start    = par1_start + 8
.const tri1_start    = par1_start + 4
.const tri2_start    = par1_start + 12

//    Reusable values on ZP
.const zp_y        = $2b // =$01. Lo byte of $0801 (pointer to BASIC area)
.const zp_ctr      = $2c // =$08. Hi byte of $0801
.const tri2_ptr    = $b2 // Pointer to tape buffer, $033c

// Address we need a pointer for (tri2+1): $33c+$84 = $03c0
* = $03a3 // $033c + $84 - 29

// SYS 931
newline:lda #'*'
        ldy zp_y
        cpy #5
        bcc tri1

        ldx #9
par1:   sta par1_start, x
par2:   sta par2_start, x
        dex
        bne par1

        inc par1+1
        dec par2+1

tri1:   sta tri1_start, y
tri2:   sta tri2_start, y
        dey
        bne tri1

        jsr $e981

        dec zp_ctr
        bmi decy
        dcp (tri2_ptr), y
        inc zp_y
        bne newline
decy:   isc (tri2_ptr), y
        dec zp_y
        bne newline
        
        rts
Search CSDb
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries (1)
· User Comments (1)
· Production Notes (1)
Fun Stuff
· Goofs
· Hidden Parts
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.09 sec.