KarolS / KarolS/millfork

Program not compiled

Open
#141 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
279
Forks
21
PR merge metrics
No merged PRs in 30d

Description

compile millfork.jar -I .\include\ -t zxspectrum -s proga.mfk
`
import stdlib

array(word) sa[192]
array(byte) bw = [$80,$40,$20,$10,8,4,2,1]
word sad

void main() {
//precalc screen lines adresses
byte i
for i,0,to,191
{
asm
{
ld a,(i)
call $22b0
ld (sad),hl
}
sa[word (i)]=sad
}

for i,0,to,191
{
plott(i,i)
}

while true {}
}

ubyte plott(ubyte x, ubyte y) {
sad=sa[word(y)]+(x>>3)
poke(sad,peek(sad)|(bw[x&7]))
}

`

Contributor guide

Open the contributing guide

Research direction

Start by running the provided millfork.jar command against proga.mfk with the include path and zxspectrum target, recording the compiler output. Trace the failure in the compiler and confirm the program compiles successfully for that command and target.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.