News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

data from .prog_table after Transport &4000 and start with call ?

Started by funkheld, 12:41, 30 November 18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld



Hi good afternoon.
how can you get the data from .prog_table after
Transport &4000 and start with call


Thank you.
greeting



noheader
write "rsxscr5.rom"
nolist
limit &ffff
org &c000


defb 1 ;rom type ... background
defb 1 ;mark 1
defb 1 ;version 1
defb 1 ;modification 1


defw name_table
jp initialise_rom ;power-up/reset entry
jp rsxscr4    ;double height printing


.name_table
defb "PEBI","E"+&80   ;bad name
defb "RSXSCR","4"+&80     ;double,@a$
defb 0


.initialise_rom
   push de:push hl ;save de/hl
   call print_string; print power-up message
   defb 13,10
   defb "rom screen"
   defb 13,10,10
   defb 0
   pop hl:pop de ;restore hl/de
   and a
   ld bc,32:sbc hl,bc ;grab 32 bytes from top of memory
   scf
   ret


.print_string
   pop hl ;get string address
. sp_loop
   ld a,(hl):call &bb5a ;print character
   inc hl
   or a ;done?
   jr nz,sp_loop
   jp (hl)
   ret


.prog_table   
   DEFB &CD, &73, &40, &C9, &21, &FE, &FF, &ED, &5B, &71, &40
   DEFB &19, &01, &00, &C0, &71, &23, &70, &21, &FC, &FF, &ED
   DEFB &5B, &71, &40, &19, &01, &00, &00, &71, &23, &70, &21
   DEFB &FC, &FF, &ED, &5B, &71, &40, &19, &4E, &23, &46, &21
   DEFB &00, &40, &B7, &ED, &42, &DA, &70, &40, &21, &FE, &FF
   DEFB &ED, &5B, &71, &40, &19, &E5, &21, &FE, &FF, &ED, &5B
   DEFB &71, &40, &19, &5E, &23, &56, &EB, &23, &44, &4D, &E1
   DEFB &71, &23, &70, &21, &FE, &FF, &ED, &5B, &71, &40, &19
   DEFB &5E, &23, &56, &EB, &36, &81, &21, &FC, &FF, &ED, &5B
   DEFB &71, &40, &19, &5E, &23, &56, &13, &72, &2B, &73, &C3
   DEFB &20, &40, &C9, &00, &00, &2A, &71, &40, &E5, &ED, &73
   DEFB &71, &40, &21, &FC, &FF, &39, &F9, &CD, &04, &40, &2A
   DEFB &71, &40, &F9, &E1, &22, &71, &40, &C9
     
.rsxscr4
   call &b906
   push af      ;enable lower rom
   ............................
    ...........................
   pop af
   call &b90c   ;restore lower rom state
   ret
list
end

Targhan

Speaking only for myself, I have no idea of what you are asking for, I'm sorry. What is "prog_table" and Transport?


That bit of code looks like the header of a ROM. But there is nothing else (no real implementation. initialise_rom is the label where the initialization is done. But there is no code.... What do you want to do?
Targhan/Arkos

Arkos Tracker 2.0.1 now released! - Follow the news on Twitter!
Disark - A cross-platform Z80 disassembler/source converter
FDC Tool 1.1 - Read Amsdos files without the system

Imperial Mahjong
Orion Prime

Duke

Quote from: funkheld on 12:41, 30 November 18

how can you get the data from .prog_table after
Transport &4000 and start with call
ld hl,prog_table
ld de,&4000
ld bc,140 ; or whatever length
ldir
call &4000

Maybe?


Powered by SMFPacks Menu Editor Mod