mirror of
https://github.com/mcanlas/6502-opcodes.git
synced 2024-06-10 15:29:28 +00:00
with summoning syntax
This commit is contained in:
parent
28d945c8f1
commit
63bcfbd282
|
@ -6,3 +6,7 @@ trait Load[A]:
|
|||
|
||||
// from register
|
||||
def from: String
|
||||
|
||||
object Load:
|
||||
def apply[A : Load]: Load[A] =
|
||||
summon[Load[A]]
|
||||
|
|
|
@ -2,3 +2,7 @@ package com.htmlism.scratchpad
|
|||
|
||||
trait Store[A]:
|
||||
def to: String
|
||||
|
||||
object Store:
|
||||
def apply[A: Store]: Store[A] =
|
||||
summon[Store[A]]
|
||||
|
|
Loading…
Reference in New Issue
Block a user