Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You probably know, but it also would help readability and portability if you created separate constants SPACE and SCREENSIZE (or similar)

Also, if you want to go for idiomatic 6502 code, rather than readability:

- you want to optimize for size and speed by looping down from C to zero (rather than looping up from zero to C) where possible (because you don’t need to do a CMP to compare with zero)

- LCD__print wastes memory and CPU cycles. It can fall-through to LCD__print_with_offset, and that could fall-through to LCD_render,



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: