TGB1718 Posted August 25, 2022 Share Posted August 25, 2022 16 minutes ago, manterola said: At least for me, the main struggle with assembler is related with the implementation of "functions" In pure assembler there are no "functions" as such, just subroutines, however with modern assemblers like MADS functions (procedures) are available with or without passed in variables i.e. aproc .proc code here... RTS .endp or myproc .proc (.byte var1, .word var2) code here .... RTS .endp Generally code in VBI is screen orientated (including PM's) where you want to complete processing while the screen is not being drawn. Your MAIN code loop can be doing anything needed outside of VBI, but it is still possible to synchronise it with the VBI by setting/clearing handshake flags between to 2 processes. DLI's by their nature are short/sharp processes and generally used to change line/screen colours on the fly or move PM's horizontally enabling the same player to appear in a different horizontal position further down the screen, if DLI's take too long to process, you will see some corruption on screen or undesirable effects. 1 Quote Link to comment Share on other sites More sharing options...
manterola Posted August 25, 2022 Share Posted August 25, 2022 (edited) I totally agree with the subject of "functions", "procedures" or "reusable code" kind of theme, and there is this whole thing about passing arguments using the accumulator or using the page 0 available locations, etc. That for me is something I have read in theory, and play a bit in practice but I don't feel particularly comfortable about it yet. Regarding the "main loop" I have seen games that do everything in the VBI, and almost nothing except init in the main program. I think that way is a good ption with simple games, so you dont worry bout synching the different parts of your program. Anyway, sorry for hijacking this post, just wanted to add a bit to the conversation regarding obstacles for Assembler newbies like me, coming from basic, c, pascal, fortran, etc. traditional languages. Edited August 25, 2022 by manterola Quote Link to comment Share on other sites More sharing options...
Panther Posted August 25, 2022 Share Posted August 25, 2022 4 hours ago, manterola said: ...coming from basic, c, pascal, fortran, etc. traditional languages. I'm rather certain that assembly predates those... 1 Quote Link to comment Share on other sites More sharing options...
Wally1 Posted August 25, 2022 Share Posted August 25, 2022 just write one k i mean 2 or 3 line programs, till you see what they do. and never give up! Quote Link to comment Share on other sites More sharing options...
Wally1 Posted August 25, 2022 Share Posted August 25, 2022 rdefabri, i'm 52. you're never too old! it sharpens one's mind. one trick is to generously use comments when coding.. -Wally1 and gyros are great! 1 Quote Link to comment Share on other sites More sharing options...
rdefabri Posted August 26, 2022 Share Posted August 26, 2022 2 hours ago, Wally1 said: rdefabri, i'm 52. you're never too old! it sharpens one's mind. one trick is to generously use comments when coding.. -Wally1 and gyros are great! I got you by a year (53) - I think with some guidance I could learn it but my head is so oriented around high level languages that assembler is a different beast for me. I may try the baby steps but first I have to create something using BASIC, then I’ll move up. Quote Link to comment Share on other sites More sharing options...
Jinroh Posted August 26, 2022 Share Posted August 26, 2022 Very great progress so far! Haunted House is the fun game, and your version is looking nice so far on the A8. Quote Link to comment Share on other sites More sharing options...
Wally1 Posted August 26, 2022 Share Posted August 26, 2022 good luck yasou Quote Link to comment Share on other sites More sharing options...
Wally1 Posted August 26, 2022 Share Posted August 26, 2022 you can wrikte a asm lang routine Quote Link to comment Share on other sites More sharing options...
+MrFish Posted August 26, 2022 Share Posted August 26, 2022 13 hours ago, Wally1 said: i'm 52. 11 hours ago, rdefabri said: I got you by a year (53) I'm getting old enough now, that I'm starting to become nostalgic about nostalgia. 1 Quote Link to comment Share on other sites More sharing options...
Wally1 Posted August 26, 2022 Share Posted August 26, 2022 how do you kill time punch a cl.ock Quote Link to comment Share on other sites More sharing options...
+MrFish Posted August 26, 2022 Share Posted August 26, 2022 13 minutes ago, Wally1 said: how do you kill time I used to employ a hatchet to kill time; but since the early 80's I've been using a Ginsu Knife. Those things are amazing! 13 minutes ago, Wally1 said: punch a cl.ock Punching a clock hurts my hand. 1 Quote Link to comment Share on other sites More sharing options...
Thelen Posted August 26, 2022 Share Posted August 26, 2022 On 8/23/2022 at 12:41 PM, olix said: When I had my first Atari 400 in the early 80's, there was one game I always was jealous about VCS owners: Haunted House. I hadn't even played the game in the past, but loved the pictures on the box and the "spooky" story described in the Atari catalog. Is it really possible that there hasn't been a port of it for the Atari 8-bit computers to this day? So I decided to write my own version of this game. But it's not an emulation of the original code, I'm reprogramming the game with my own code. This is actually my first machine language game ever. That's funny, in 2002 I took exactly thesame route as you did! 🙂 Then, I was also wondering why there was no haunted house for the Atari 8 bit line - and was also learning assembly and did some small try out on the Atari 2600. But the system I prefered was the 800XL (the 8 bit line) what I had when I was a child. So I wanted to make a 8 bit clone - but I never finished it 🙂 Just for fun I searched my post from 20 years ago: I really hope you finish you're haunted house and that we can have fun playing this 2600 classic!! 1 Quote Link to comment Share on other sites More sharing options...
olix Posted August 26, 2022 Author Share Posted August 26, 2022 3 hours ago, Thelen said: That's funny, in 2002 I took exactly thesame route as you did! 🙂 Then, I was also wondering why there was no haunted house for the Atari 8 bit line - and was also learning assembly and did some small try out on the Atari 2600. But the system I prefered was the 800XL (the 8 bit line) what I had when I was a child. So I wanted to make a 8 bit clone - but I never finished it 🙂 OK. So i'm not the first one, trying to port Hauntd House. Why did you never finished the game? I'm a few steps further. I see you used the PM-Collision-Detection. This was also my first try. But I didn't like the wiggling of the eyes when they touch a wall. So know i use a software based collision detection. I's a lot smoother. Also i have since some days the diagonal movement implemented. And my firelight looks more like the original one. Next step is building the stairs and the movement to the other foors. I think this is not so difficult. After that i will install the items. And then the monsters, sound, scoreboard ..... so alot of work to do. And thanks to all AtariAge users here in the forum for the good words, that's really motivating. 1 Quote Link to comment Share on other sites More sharing options...
Thelen Posted August 27, 2022 Share Posted August 27, 2022 21 hours ago, olix said: Why did you never finished the game? Well I don't know exectly anymore... When I was (20) years younger I started every month an new game or project and never finished something. 30 years ago I started every week a new game. (in Basic) I've made progress, now just once a year 21 hours ago, olix said: I'm a few steps further. I see you used the PM-Collision-Detection. This was also my first try. But I didn't like the wiggling of the eyes when they touch a wall. Didn't like that either, much better to do software collision! Great job you're doing for the 1st time 6502 asm! 1 Quote Link to comment Share on other sites More sharing options...
+Stephen Posted August 27, 2022 Share Posted August 27, 2022 2 hours ago, Thelen said: Well I don't know exectly anymore... When I was (20) years younger I started every month an new game or project and never finished something. 30 years ago I started every week a new game. (in Basic) I've made progress, now just once a year Didn't like that either, much better to do software collision! Great job you're doing for the 1st time 6502 asm! Sounds familiar! 1 Quote Link to comment Share on other sites More sharing options...
olix Posted September 22, 2022 Author Share Posted September 22, 2022 Things are going on. There are a lot things to to, but i'm making progress: The player can now move through all four floors of the mansion. You can collect the items and build the vase. After collecting all three parts of the vase, you can leave the house and the game starts again. So, what's missing and coming in the next big step are the ghost, spieder and bat.... 2022-09-22_11-31-38.mp4 7 Quote Link to comment Share on other sites More sharing options...
Stefan Both Posted September 22, 2022 Share Posted September 22, 2022 On 8/25/2022 at 2:22 PM, MrFish said: jmp abs 0114 76 0x4c 3 3 eor abs 0115 77 0x4d 3 4 ... ... ... I'm missing the opcode ' jwr ' ...🤭 . Stefan Quote Link to comment Share on other sites More sharing options...
+MrFish Posted September 22, 2022 Share Posted September 22, 2022 49 minutes ago, Stefan Both said: I'm missing the opcode ' jwr ' ...🤭 . ? Quote Link to comment Share on other sites More sharing options...
griz Posted September 23, 2022 Share Posted September 23, 2022 Nice! As you can tell by my avatar, I am a big fan of Haunted House. 1 1 Quote Link to comment Share on other sites More sharing options...
Stefan Both Posted September 24, 2022 Share Posted September 24, 2022 On 9/22/2022 at 11:49 PM, MrFish said: ? There must be that opcode !!! At least, jwr must exist in my programs... 🤭 Jump Without Reason 😒 Stefan 1 1 Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted September 24, 2022 Share Posted September 24, 2022 6 minutes ago, Stefan Both said: There must be that opcode !!! At least, jwr must exist in my programs... 🤭 Jump Without Reason 😒 You are missing the point. We are talking about real world computing and not of Agile Development. 😎 2 Quote Link to comment Share on other sites More sharing options...
+MrFish Posted September 24, 2022 Share Posted September 24, 2022 9 hours ago, Stefan Both said: There must be that opcode !!! At least, jwr must exist in my programs... 🤭 Jump Without Reason 😒 Ah, ok... this is all I was able to come up with (from the web). Acronym Definition JWR Jewish World Review JWR Just Within Reach JWR Jehovah's Witness Recovery JWR Johnny Walker Red (whiskey) JWR James Wegg Review (website) JWR Joint War Room "Jump Without Reason"... sounds like some sort of involuntary habit (or Tourette syndrome symptom). 5 Quote Link to comment Share on other sites More sharing options...
Stefan Both Posted September 26, 2022 Share Posted September 26, 2022 A joke, Mr. Atari told me, years ago, when we first met. I could not resist 😄. Stefan 2 Quote Link to comment Share on other sites More sharing options...
Thelen Posted September 27, 2022 Share Posted September 27, 2022 On 9/22/2022 at 11:36 AM, olix said: The player can now move through all four floors of the mansion. You can collect the items and build the vase. After collecting all three parts of the vase, you can leave the house and the game starts again. Nice update! 🙂 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.