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

Program not compiled #141

Open
DimastyK opened this issue Aug 30, 2024 · 0 comments
Open

Program not compiled #141

DimastyK opened this issue Aug 30, 2024 · 0 comments

Comments

@DimastyK
Copy link

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]))
}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant