Jump to content

juice2839

Banned
  • Content Count

    494
  • Joined

  • Last visited

Everything posted by juice2839

  1. Video speaks for itself.... Literally It's saying " Hello Started and Ready"
  2. Amazing eye Niad Yes yes I am If I can figure out the way to get the A port to work on the SGM sometime this week that is.. Been going at it most of the day.
  3. YEAH I got it to assemble with no errors........... org #8000 vdp1: equ #be ;mtx #1 - cv=$be - msx=$98 vdp2: equ #bf ;mtx #2 - cv=$bf - msx=$99 sound: equ #f0 ;mtx #6 - cv=#f0 - msx=n/a psglatch: equ #50 psgrd_wr: equ #51 org #8000 db #55,#aa ;55aa show title aa55 jmp to START db #00,#00 ;vector 1 (always 0000 or ram 7xxx) db #00,#00 ;vector 2 (always 0000 or ram 7xxx) db #00,#00 ;vector 3 (always 0000 or ram 7xxx) db #00,#00 ;vector 4 (always 0000 or ram 7xxx) dw START ;vectorcode db #C9,#00,#00 ;jmp rst $08 db #C9,#00,#00 ;jmp rst $10 db #C9,#00,#00 ;jmp rst $18 db #c9,#00,#00 ;jmp rst $20 db #c9,#00,#00 ;jmp rst $28 db #c9,#00,#00 ;jmp rst $30 db #c9,#00,#00 ;jmp rst $38 db #c9,000,000 ;jmp nmi (vert.blank int vdp) db "TEST CV",#2F ;titlescreen (if aa55) db "LINE 2",#2F ;Line 2 db "2013",#2F ;display year ;************************************************************** START: di ld sp,#73b9 ;SET STACK POINTER call #1FD6 ;TURN OFF SOUND call PSG_OUT ;MAKE PSG OUTPUT BEGIN: ld b,#33 ;START OF ALLOPHONES LOOP: ld a,b ;LOAD A WITH ALLOPHONE add a,#c0 ;BIT 7&8 HIGH call PSG_DAT ; sub #c0 ;SETUP BIT 7&8 LOW call PSG_DAT ;SAY ALLOPHONE call DELAY_1 ;DELAY dec b ;SUBTRACT 1 NEXT ALLOPHONE jp nz, LOOP ;ZERO? NO - LOOP jp BEGIN ;ZERO? YES - SAY THEM AGAIN call PSG_IN ;NOT USED YET DELAY_1: push bc ld b,#FF J61: ld d,#FF J62: dec d jp nz,J62 dec b jp nc,J61 pop bc ret PSG_OUT: ld a,#7 ;SELECT ENABLE REGISTER out (psglatch),a ; ld a,%11000000 ;MAKE I/O PORT OUTPUT out (psgrd_wr),a ld a,#16 ;SELECT IOA REGISTER out (psglatch),a ld a,#0 PSG_DAT: out (psgrd_wr),a ;SET OUPUTS LOW ret PSG_IN: ld a,#7 ;SELECT ENABLE REGISTER out (psglatch),a ; ld a,0 ;MAKE I/O PORT INPUT out (psgrd_wr),a ld a,#16 ;SELECT IOA REGISTER out (psglatch),a ld a,(psgrd_wr) ;GET IOA INPUT IN A ret STOP: jp STOP
  4. You have to check this one out. http://retrospec.sgn.net/game-links.php?link=z80asmThis one looks really good. I just found it so I have not fully tested it but I like it already. It has a nice simple IDE.
  5. I think I figured it out..... It wants the Intel 8080 style of Mnemonic which sucks, but at least it has an IDE. 8000 org 0x8000 8000 78 START MOV A,B 8001 79 MOV A,C 8002 7A MOV A,D ~Invalid Directive, Operation or Macro ~ LD LD A,D 8003 7B MOV A,E ~Invalid Directive, Operation or Macro ~ LD LD A,E ~Too many operands ~ A,H LD A,H ~Bad register ~ H LD A 8004 78 MOV A,H LD A,H 8005 7D MOV A,L
  6. I'm using that IDE / Assembler I set a link to in the first post not Tiasm. Not sure if you caught that. I did try it with the z80 cpu just for kicks but it gave an error on that too. Invalid Directive, Operation or Macro ~ cpu cpu z80 8000 org 0x8000 ~Invalid Directive, Operation or Macro ~ ld ld a,0 ; Initialising the partial sum ~Invalid Directive, Operation or Macro ~ ld ld hl,$1000 ; Initialising the pointer to the first byte of the data ~Invalid Directive, Operation or Macro ~ inc inc (hl)
  7. This is a pretty good listing of the z80 instruction set too. I guess I could get really crazy and do it like we did it in the 80's and just use machine language.. Ouch.. http://nemesis.lonestar.org/computers/tandy/software/apps/m4/qd/opcodes.html
  8. Its the assembler not working right or some little nuance I am missing with it. Or maybe it's just not windows 7 compatible. It would be cool if someone else took a look at it. I guess I could use that tiasm, but not having an IDE sucks.... It must be everyone has moved over to programming in C++ or something. It's been 15+ years since I have programmed in assembly. I used Tasm and DOS last time, but I really really don't want to go back to that.. LOL
  9. LOL right.. You should download that IDE and assembler. It's dead simple and if someone can figure out what the deal is with the assembler I think it would be a great tool.
  10. I tried it with inc (hl) still errors out.. Invalid Directive, Operation or Macro ~ ld ld a,0 ; Initialising the partial sum ~Invalid Directive, Operation or Macro ~ ld ld hl,$1000 ; Initialising the pointer to the first byte of the data ~Invalid Directive, Operation or Macro ~ inc inc (hl) ~Invalid Directive, Operation or Macro ~ a,(hl) add a,(hl)
  11. I may be wrong on the mnemonic I am using, but I think you should be able to inc hl the absolute value and inc the data at location hl. $1000 is hex. Some assemblers like the format 0x1000 some like &H1000 and so on. This one says that it uses the Intel structure.... I tried a few different ways like ld hl,0x9999 or ld hl,$9999 but it does not seem to matter.
  12. It depends on if you want to inc what at location hl or what in hl.
  13. I think it was giving the offset from my start address in the error listing. I started with org 8000. This program has a nice IDE and seems simple to use. I can't figure out the assembler though LOL
  14. Any idea in the world why this assembler is giving these errors ? This is what that IDE with assembler I set a link to in the first post outputs when I tried to assemble some simple code. ~Invalid Directive, Operation or Macro ~ ld ld a,0 ; Initialising the partial sum ~Invalid Directive, Operation or Macro ~ ld ld hl,$1000 ; Initialising the pointer to the first byte of the data ~Too many operands ~ a,(hl) 8000 87 add a,(hl) ; Adding the current data to the sum ~Invalid Directive, Operation or Macro ~ inc inc hl ; Proceeding to the next byte of the data ~Too many operands ~ a,(hl) 8001 87 add a,(hl) ~Invalid Directive, Operation or Macro ~ inc inc hl ~Too many operands ~ a,(hl) 8002 87 add a,(hl) ~Invalid Directive, Operation or Macro ~ inc inc hl
  15. That just seems like such a difficult way to do it. Then you have to open a txt file to see if you have errors?
  16. Is Tiniasm the assembler of choice? Is there not anything with an IDE. I did find this http://www.z80.info/zip/as8080.zip It looks pretty nice, but it seems to error out on Mnemonics that seem right. Like LD A,00 gives an error. If it had some documentation I think it could be a good tool. At any rate what do you guys use for your assemble and IDE for z-80 if any? Oh let me add I use windows 7.
  17. UPDATE _ I just found out the 60 pin connector is not even the same.
  18. I love Sarcasm.. Glad you get it, I actually for a second thought you were going to redirect me to a porn site or something.. LOL
  19. I didn't know big brother was watching... I only respond with the same asshollyness I am thrown.. In your case you seem to be provoking.. but some people with power are like that. Happy Thanksgiving.
  20. I always tell people my wife just loves me because I'm handy.. LOL Red Green " Remember if women don't find you handsome at least they can find you handy"
  21. Oh man, I love red green. I wish that was still on. Living in Michigan I could get it on the Canadian channel from across the boarder...
  22. I can produce 500 units in the same 3 weeks if there were a demand. No problem. I won't even venture to guess how a special connector held you up for 2 years...
  23. Not as special as duct tape, but that wasn't available. I bet your better with duct tape yourself.
  24. Yes. it checks to see if it's plugged into an Adam by looking for the extra memory. If it is there then it does not enable it on the Juicebox just like how the SGM does it.
×
×
  • Create New...